We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As the docs say, "[...] Updatable and Insertable interfaces for tables and views that aren’t writable are now { [key: string]: never } instead of {}.
Updatable
Insertable
{ [key: string]: never }
{}
I have a view that I have made updatable by adding triggers INSTEAD OF CREATE and INSTEAD OF UPDATE. See for example this article.
INSTEAD OF CREATE
INSTEAD OF UPDATE
Is it possible to tell Zapatos that the Insertable and Updatable interfaces should be populated?
The text was updated successfully, but these errors were encountered:
Sorry for the delay.
I can see this is an important feature. It's not currently supported, but I think it should be possible without too much trouble.
I think we might need a new generate-time config option, possibly tableOptions, to sit alongside the existing columnOptions.
tableOptions
columnOptions
Then you might add something like the following to your config:
"tableOptions": { "myTable": { "insertable": true, "updatable": true } }
(I guess we might also allow these to be false to override behaviour in the other direction).
false
Does this sound sensible?
Sorry, something went wrong.
Yes, this sounds great!
No branches or pull requests
As the docs say, "[...]
Updatable
andInsertable
interfaces for tables and views that aren’t writable are now{ [key: string]: never }
instead of{}
.I have a view that I have made updatable by adding triggers
INSTEAD OF CREATE
andINSTEAD OF UPDATE
. See for example this article.Is it possible to tell Zapatos that the
Insertable
andUpdatable
interfaces should be populated?The text was updated successfully, but these errors were encountered: