ArsenyYankovsky / typeorm-aurora-data-api-driver

A bridge between TypeORM and Aurora Data API
MIT License
175 stars 38 forks source link

SET data type is not supported #97

Closed vicary closed 3 years ago

vicary commented 3 years ago

Package versions and database engine type (please complete the following information):

Describe the bug MySQL supports SET data type, which I also confirmed with raw DDL in AWS console that it works in Aurora Serverless.

But when I synchronize with a SET column, it throws the following error:

DataTypeNotSupportedError: Data type "set" in "testSet" is not supported by "aurora-data-api" database.

To Reproduce Synchronize with the following entity,

enum TestSet {
  foo = "foo";
  bar = "bar";
}

@Entity()
class Test {
  @Column({
    type: "set",
    enum: TestSet,
    nullable: false,
  })
  testSet!: TestSet[];
}
vicary commented 3 years ago

Closing this because the authors don't seem to care, and I can't bother to figure out the relation between this package and the embedded version inside typeorm.

The source code inside typeorm/typeorm does seems to include the "set" keyword, but I just ended up not using it for the moment. I may update this issue when I have to use it in the future.