stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.57k stars 1.55k forks source link

Expose connection flags #1074

Closed jberkel closed 1 year ago

jberkel commented 2 years ago

I'm wondering why the Connection constructor doesn't let you pass flags. E.g., it seems important that I be able to pass the flag SQLITE_OPEN_FILEPROTECTION_NONE.

(@crspybits, #1042)

jberkel commented 1 year ago

You can now use URIQueryParameter to easily construct URI parameters to control opening behaviour.

https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md#uri-parameters

Besides, SQLITE_OPEN_FILEPROTECTION_NONE is not a standard SQLite flag.