cds-dbm
cds-dbm copied to clipboard
Where to implement reserved keyword check? cds-dbm or cds-pg
In #179 this issue was identified:
But 'user' turns out to be a reserved keyword in Postgresql.
https://www.postgresql.org/docs/current/sql-keywords-appendix.html
Might be an idea to scan for those and give a warning ?
the question is where do we implement this? in cds-dbm or cds-pg.
What do you think @vobu?
I'd vote for both:
- in
cds-pg
when serving any.cds
that containsuser
as an entity - in
cds-dbm
at deploy-time
Great. It could also be nice to include a warning on the combined length of a table / view exceeding the hard limit of 63 characters. See #180