-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID fixes #2
base: cratedb
Are you sure you want to change the base?
UUID fixes #2
Conversation
Look at this patch. Corresponding constraints also had to be relaxed, in this case private methods of Python, in order to be able to properly derive a CrateDB dialect from the existing PostgreSQL one, without needing to duplicate large swaths of code. |
About
The CrateDB dialect for TypeORM needs a type mapper, and special treatments for the fact that primary autogenerated keys with CrateDB are UUIDs, stored as strings, as a workaround.
Details
The file
src/driver/cratedb/CrateDBPostgresQueryRunner.ts
had to be copied into the tree as a whole, in order to be able to overwrite thebuildCreateColumnSql
method, because it is flagged asprotected
.typeorm/src/driver/cratedb/CrateDBPostgresQueryRunner.ts
Lines 4602 to 4659 in 3f74136
References
It is based on basic work to unlock CrateDB with TypeORM.