vitalseeds / vs-data-api

Fast API endpoints to expose vs-data actions for to run from Filemaker
MIT License
0 stars 0 forks source link

Check database connection is closed #50

Open tombola opened 7 months ago

tombola commented 7 months ago

Sometimes when FileMaker is closed and reopened Vs data API can no longer access FileMaker over odbc.

Possibly leaving odbc connection open?


Use context manager, and or decorator on fast API endpoints and cli commands.

Should all be tightened up when move to fmsql library anyway.

tombola commented 5 months ago

Using svcs seems a good idea here, especially with the two databases, sometimes needing one, the other, none

https://svcs.hynek.me/en/stable/