ApiLogicServer / ApiLogicServer-src

Create an executable project (API and Admin App) from a database or natural language prompt with 1 command, customize with declarative rules and Python in your IDE, containerize and deploy.
https://apilogicserver.github.io/Docs/
BSD 3-Clause "New" or "Revised" License
28 stars 4 forks source link

Composite Key Updates Fail #13

Open valhuber opened 1 year ago

valhuber commented 1 year ago

In classicmodels, OrderDetails cannot be updated due to primary key of Order & Product IDs.

Setup is Step I of this page: https://apilogicserver.github.io/Docs/DevOps-Containers-Deploy-Multi/

Then, just update an OrderDetail

thomaxxl commented 1 year ago

The default delimiter for a composite pk is "_", this can be overriden by setting SAFRSBase._s_pk_delimiter to something else (for example "|" ).

Could you try this please?

https://github.com/thomaxxl/safrs/blob/8735f737848d3713b7969c9b586f18453606d293/safrs/base.py#L118