direct-sqlite 2.3.9 → 2.3.11
raw patch · 1 files changed
+20/−5 lines, 1 filesdep ~base
Dependency ranges changed: base
Files
- direct-sqlite.cabal +20/−5
direct-sqlite.cabal view
@@ -1,5 +1,5 @@ name: direct-sqlite-version: 2.3.9+version: 2.3.11 build-type: Simple license: BSD3 license-file: LICENSE@@ -21,6 +21,10 @@ . Release history: .+ [Version 2.3.11] Add support for URI filenames, and default to having them on. Among other things, this enables using in-memory databases.+ .+ [Version 2.3.10] Add support for compiling the bundled SQLite3 with URI filename support. Specifying flags that would have affected the bundled SQLite3 no longer causes build failure if the "systemlib" flag is specified.+ . [Version 2.3.9] Update bounds on the requirement on the "text" library. . [Version 2.3.8] Upgrade bundled SQLite3 to 3.8.1.@@ -83,6 +87,10 @@ description: Enable full-text search when using the bundled sqlite library default: True +flag urifilenames+ description: Enable URI filenames when using the bundled sqlite library+ default: True+ Library exposed-modules: Database.SQLite3@@ -93,18 +101,25 @@ if flag(systemlib) { cpp-options: -Ddirect_sqlite_systemlib extra-libraries: sqlite3- if flag(fulltextsearch) {- buildable: False- } } else { if !os(windows) { extra-libraries: pthread } c-sources: cbits/sqlite3.c- if flag(fulltextsearch) {+ if flag(fulltextsearch) && flag(urifilenames) { cc-options: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4+ -DSQLITE_USE_URI+ } else {+ if flag(fulltextsearch) {+ cc-options: -DSQLITE_ENABLE_FTS3+ -DSQLITE_ENABLE_FTS3_PARENTHESIS+ -DSQLITE_ENABLE_FTS4+ }+ if flag(urifilenames) {+ cc-options: -DSQLITE_USE_URI+ } } }