-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi @BingCoke,
great work on this adapter! I was going to test it and encountered this unexpected behaviour:
The sqlite database name is forced to end with ".db". I have some existing databases from the original plugin and they all have ".sqlite" extension. Looking at the source code, it seems like op-sqlite does that. My app runs mainly offline so needs to handle upgrades seamlessly.
Do you feel strongly about forcing .db extension? I suggest removing this line and just passing options.name to op-sqlite:
pouchdb-adapter-sqlite/packages/pouchdb-adapter-opsqlite/src/opsqlite-adapter.ts
Line 130 in 0ca7b5d
| const dbName = options.name.endsWith('.db') ? options.name : `${options.name}.db`; |
Cheers!
Metadata
Metadata
Assignees
Labels
No labels