Skip to content

Commit

Permalink
Let's copy ecto
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Jul 18, 2024
1 parent 92f8542 commit 31ccdef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/puck/database.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ pub type Connection =

const connection_config = "
pragma foreign_keys = on;
pragma journal_mode=wal;
pragma synchronous=normal;
pragma mmap_size = 134217728;
pragma journal_size_limit = 27103364;
pragma cache_size=2000;
pragma journal_mode = wal;
pragma temp_store = memory;
pragma busy_timeout = 2000;
pragma cache_size = -64000;
"

pub fn with_connection(path: String, f: fn(sqlight.Connection) -> a) -> a {
Expand Down

0 comments on commit 31ccdef

Please sign in to comment.