question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TableForeignKeyOptions missing params for deferrable

See original GitHub issue

Issue 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
pleerockcommented, May 23, 2018

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.

2reactions
JanPetercommented, Oct 6, 2018

Is there any update on this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found