Digital-Alchemy-TS / synapse

Typescript utilities for creating and managing virtual entities within Home Assistant
https://docs.digital-alchemy.app
MIT License
0 stars 0 forks source link

Locking issues with multiple apps on same database #20

Open zoe-codez opened 2 months ago

zoe-codez commented 2 months ago

Bug description

The sqlite database was originally intended to have multiple apps work together on the same data file. The library isn't currently equipped for that to work, there seems to be some sort of locking situation happening preventing that. Causes an app crash

It's easy enough to work around, but there should be some updates to the docs and some extra warnings when this situation occurs. Maybe the default file should be updated to match the app name instead?

Low priority issue, requires some thought. Prefer not to introduce breaking changes for this minor edge case