-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathdirect-sqlite.cabal
125 lines (107 loc) · 4.11 KB
/
direct-sqlite.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: direct-sqlite
version: 2.3.29
synopsis: Low-level binding to SQLite3. Includes UTF8 and BLOB support.
description: This package is not very different from the other SQLite3 bindings out
there, but it fixes a few deficiencies I was finding. As compared to
bindings-sqlite3, it is slightly higher-level, in that it supports
marshalling of data values to and from the database. In particular,
it supports strings encoded as UTF8, and BLOBs represented as
ByteStrings.
license: BSD3
license-file: LICENSE
copyright: Copyright (c) 2012 - 2014 Irene Knapp,
2014 - 2018 Janne Hellsten,
2018 - 2020 Sergey Bushnyak,
2022 - 2024 Joshua Chia
author: Irene Knapp <[email protected]>
maintainer: Joshua Chia <[email protected]>
category: Database
homepage: https://github.com/IreneKnapp/direct-sqlite
bug-reports: https://github.com/IreneKnapp/direct-sqlite/issues
build-type: Simple
extra-source-files: cbits/sqlite3.c
cbits/sqlite3.h
cbits/sqlite3ext.h
changelog
README.md
cabal-version: >= 1.10
tested-with: GHC == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.8 || == 9.4.8 || == 9.6.4 || == 9.8.1
source-repository head
type: git
location: git://github.com/IreneKnapp/direct-sqlite.git
flag systemlib
default: False
description: Use the system-wide sqlite library
flag fulltextsearch
default: True
description: Enable full-text search when using the bundled sqlite library
flag urifilenames
default: True
description: Enable URI filenames when using the bundled sqlite library
flag haveusleep
default: True
description: Enable use of os function usleep.
flag json1
default: True
description: Enable json1 extension.
flag mathfunctions
default: False
description: Enable built-in mathematical functions
flag dbstat
default: True
description: Enable dbstat virtual table
library
exposed-modules: Database.SQLite3
Database.SQLite3.Bindings
Database.SQLite3.Bindings.Types
Database.SQLite3.Direct
build-depends: base >= 4.11 && < 5
, bytestring >= 0.9.2.1
, text >= 0.11
build-tool-depends: hsc2hs:hsc2hs
default-language: Haskell2010
include-dirs: .
ghc-options: -Wall -fwarn-tabs
if flag(systemlib)
extra-libraries: sqlite3
cpp-options: -Ddirect_sqlite_systemlib
else
c-sources: cbits/sqlite3.c
install-includes: sqlite3.h, sqlite3ext.h
include-dirs: cbits
if !os(windows) && !os(android)
extra-libraries: pthread
if flag(fulltextsearch)
cc-options: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS
-DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
if flag(urifilenames)
cc-options: -DSQLITE_USE_URI
if flag(haveusleep)
cc-options: -DHAVE_USLEEP
if flag(json1)
cc-options: -DSQLITE_ENABLE_JSON1
if flag(mathfunctions)
cc-options: -DSQLITE_ENABLE_MATH_FUNCTIONS
if flag(dbstat)
cc-options: -DSQLITE_ENABLE_DBSTAT_VTAB
test-suite test
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules: StrictEq
hs-source-dirs: test
build-depends: base
, HUnit
, base16-bytestring
, bytestring
, direct-sqlite
, directory
, temporary
, text
default-language: Haskell2010
default-extensions: Rank2Types
ScopedTypeVariables
NamedFieldPuns
RecordWildCards
OverloadedStrings
DeriveDataTypeable
ghc-options: -Wall -threaded -fno-warn-name-shadowing -fno-warn-unused-do-bind