TableForeignKeyOptions missing params for deferrable
See original GitHub issueIssue type:
[ ] question [ ] bug report [X] feature request [ ] documentation issue
TypeORM version:
[ ] latest
[X] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
TableForeignKeyOptions
is missing params to allow setting deferrable foreign key constraints. Not sure what the best interface for this is. sqlalchemy uses a bool and a free form string/expression for “initially”.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
TableForeignKeyOptions - typeorm
Defined in schema-builder/options/TableForeignKeyOptions.ts:34. "ON DELETE" of this foreign key, e.g. what action database should perform when referenced ...
Read more >kresus 0.18.1-1 (x86_64) - File List - Arch Linux
... usr/lib/kresus/node_modules/@sqltools/formatter/lib/core/Params.js ... usr/lib/kresus/node_modules/ajv/lib/dot/missing.def ...
Read more >TableForeignKey | typeorm
deferrable : string. Defined in schema-builder/table/TableForeignKey.ts:49. Set this foreign key constraint as "DEFERRABLE" e.g. check constraints at start ...
Read more >tsconfig.build.tsbuildinfo
node_modules/@nestjs/common/decorators/http/route-params.decorator.d.ts": ... node_modules/typeorm/schema-builder/options/TableForeignKeyOptions.d.ts": ...
Read more >dist/tsconfig.build.tsbuildinfo - GitLab
node_modules/@nestjs/common/decorators/http/route-params.decorator.d.ts" ... node_modules/@nestjs/common/exceptions/gone.exception.d.ts", ".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, got you. We’ll investigate how to add this feature to typeorm in the future. Meanwhile, feel free to contribute. For now you’ll have to use raw sql queries.
Is there any update on this?