Skip to content

Commit

Permalink
Add nomutex flag to .cabal, and allow running SQLite in multi-thread …
Browse files Browse the repository at this point in the history
…threading mode.
  • Loading branch information
KtorZ committed Feb 6, 2024
1 parent 1552850 commit 97b91b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions direct-sqlite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ flag json1
default: True
description: Enable json1 extension.

flag mathfunctions
flag nomutex
default: False
description: Enable built-in mathematical functions
description: In this mode, SQLite can be safely used by multiple threads provided that no single database connection is used simultaneously in two or more threads.

flag dbstat
default: True
Expand Down Expand Up @@ -96,8 +96,8 @@ library
if flag(json1)
cc-options: -DSQLITE_ENABLE_JSON1

if flag(mathfunctions)
cc-options: -DSQLITE_ENABLE_MATH_FUNCTIONS
if flag(nomutex)
cc-options: -DSQLITE_THREADSAFE=2

if flag(dbstat)
cc-options: -DSQLITE_ENABLE_DBSTAT_VTAB
Expand Down

0 comments on commit 97b91b0

Please sign in to comment.