Skip to content

[Question] Extension support: json1, fts5 #29

Answered by rkistner
rodydavis asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. You need a binary distribution for all relevant platforms, or a build script to produce it.
  2. Use a custom SqliteOpenFactory to load the extension whenever a connection is opened.
  3. See SqliteExtension from the sqlite3 package for details on loading that.

An example for steps 2 and 3 above is here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kobiebotha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #28 on February 20, 2024 06:57.