You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALLATION.md
+43-4Lines changed: 43 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,45 @@ user 0m23.361s
73
73
sys 0m5.839s
74
74
```
75
75
76
+
##### Controlling compilation flags for sqlite
77
+
78
+
Upstream sqlite allows for the setting of some parameters at compile time. If you're an expert and would like to set these, you may do so at gem install time in two different ways ...
79
+
80
+
**If you're installing the gem using `gem install`** then you can pass in these compile-time flags like this:
NOTE the use of single quotes within the double-quoted string to ensure the space between compiler flags is interpreted correctly. The contents of your `.bundle/config` file should look like:
db.execute("CREATE VIRTUAL TABLE demo USING spellfix1;")
168
207
```
169
208
170
-
### How do I use an alternative sqlite3 implementation?
209
+
### How do I use my own sqlite3 shared library?
171
210
172
-
Some packages, like pSQLite Encryption Extension ("SEE"), are intended to be ABI-compatible drop-in replacements for the sqlite3 shared object.
211
+
Some folks have strong opinions about what features they want compiled into sqlite3; or may be using a package like SQLite Encryption Extension ("SEE"). This section will explain how to get your Ruby application to load that specific shared library.
173
212
174
213
If you've installed your alternative as an autotools-style installation, the directory structure will look like this:
175
214
176
215
```
177
-
/opt/see
216
+
/opt/sqlite3
178
217
├── bin
179
218
│ └── sqlite3
180
219
├── include
@@ -199,7 +238,7 @@ You can build this gem against that library like this:
0 commit comments