GNOME Bugzilla – Bug 795627
sqlite3.vapi missing some const values for sqlite3_open_v2()
Last modified: 2018-04-30 07:35:39 UTC
Created attachment 371491 [details] [review] Add additional SQLite 3 sqlite3_open_v2 const values. sqlite3.vapi is missing some consts that SQLite ships with these days. I'd like to use OPEN_URI for Geary's unit tests. Patch adds all currently missing values per https://www.sqlite.org/c3ref/c_open_autoproxy.html
I have pushed this, so this can be easily backported. Given the amount of those symbols it would make sense to make them an Enum for easier accessing?
Probably, as a flag enum yeah, but would using an Enum break compat with the existing Sqlite.Database.open_v2() method signature?
Created attachment 371532 [details] [review] sqlite3: Add Sqlite.OpenFlags enum for flags of Database.open_v2()
It preserves backwards compat and make type-inferenced usage possible. Sqlite.Database.open_v2 ("/tmp/test", out db, READWRITE | CREATE);