-
How can I install extensions for SQLite? In drift for example I declare a build.yaml: targets:
$default:
builders:
drift_dev:
options:
store_date_time_values_as_text: true
mutable_classes: true
sql:
dialect: sqlite
options:
version: "3.35"
modules:
- json1
- fts5
- math |
Beta Was this translation helpful? Give feedback.
Answered by
rkistner
Feb 20, 2024
Replies: 1 comment
-
For Drift, those options control the SQL dialect used when compiling queries, not the modules being installed. JSON1 is enabled by default in all SQLite builds since 3.38.0. FTS5 is also included by default when you use For other extensions:
An example for steps 2 and 3 above is here. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kobiebotha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Drift, those options control the SQL dialect used when compiling queries, not the modules being installed.
JSON1 is enabled by default in all SQLite builds since 3.38.0. FTS5 is also included by default when you use
sqlite3_flutter_libs
.For other extensions:
sqlite3
package for details on loading that.An example for steps 2 and 3 above is here.