Thread
#exposed
    dave08

    dave08

    4 years ago
    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...
    tapac

    tapac

    4 years ago
    You may map only tables you need and dont call ddl methods (create/drop/etc).
    dave08

    dave08

    4 years ago
    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!
    tapac

    tapac

    4 years ago
    Yes, you can. Use .clientDefault function to define value generated for field for inserts