Proper init for IDBBatchAtomicVFS #50
Proper init for IDBBatchAtomicVFS
#50
Replies
|
It looks fine to me. The default The default open flags are CREATE | READWRITE so if you don't really need URI then you could just pass |
0 replies
Answer selected by steida
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this configuration correct? I'm not sure about
SQLite.SQLITE_OPEN_CREATEand the other constants. I'm not sure also about PRAGMA and shared connection, are they correct? Thank youIt looks fine to me. The default
journal_modeisdelete, so thatPRAGMAisn't necessary unless it's a placeholder to try a different setting later.The default open flags are CREATE | READWRITE so if you don't really need URI then you could just pass
undefined. Adding URI doesn't hurt anything but you might not need it - the reasons to use it are to pass extra parameters to the VFS (which IDBBatchAtomic doesn't use) and that it enables passing a URI toATTACH DATABASEstatements, which can be handy if you need it, e.g. to attach another database read-only, with a non-default VFS, or with VFS-specific parameters.