If I have an existing postgres schema managed by a...
# exposed
d
If I have an existing postgres schema managed by a python framework, but would like my api to do CRUD on only part of the schema, can I just declare part of it in exposed at use only the part I need? I just need CRUD, not that it should change the structure at all...
t
You may map only tables you need and dont call ddl methods (create/drop/etc).
d
Can I map only part of the fields in a table (only the ones I need to alter/query in the api)? Also can I specify default values for certain fields (not managed by the db)? Thanks!
t
Yes, you can. Use .clientDefault function to define value generated for field for inserts
👍🏼 1