-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Add support to BSON columns. To add a new column type:
Add the new column type to drizzle-orm/src/singlestore-core/columns
Add how the new type should be written on SIngleStore migration JSOn file in introspect-singlestore.ts
Add how the default value of the new type should be serialized: https://github.com/singlestore-labs/summer-hackathon-s2-drizzle-orm/blob/feature/add-bson-column-type/drizzle-kit/src/serializer/singlestoreSerializer.ts#L134
Add drizzle-kit to create a table with a column of the new type: https://github.com/singlestore-labs/summer-hackathon-s2-drizzle-orm/blob/feature/add-bson-column-type/drizzle-kit/tests/singlestore.test.ts#L512
Add a new type test with a table with a column of the new type or add a new column of the new type to the existing schemas in drizzle-orm/type-tests/singlestore/tables.ts: https://github.com/singlestore-labs/summer-hackathon-s2-drizzle-orm/blob/feature/add-bson-column-type/drizzle-orm/type-tests/singlestore/tables.ts#L33
Add it to one of the schemas on integration-tests/tests/singlestore/singlestore.test.ts