Skip to content

Commit 042f223

Browse files
committed
Increase default max memory size
For now, increase to the max supported by sqlite3_malloc64(), as per https://sqlite.org/forum/forumpost/b1ba232667130afa?t=h.
1 parent ac4329b commit 042f223

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlite3.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ package sqlite3
2323
#cgo CFLAGS: -DSQLITE_OMIT_SHARED_CACHE
2424
#cgo CFLAGS: -DSQLITE_ENABLE_JSON1
2525
#cgo CFLAGS: -DSQLITE_ENABLE_DBSTAT_VTAB
26+
#cgo CFLAGS: -DSQLITE_MEMDB_DEFAULT_MAXSIZE=2147483648
2627
#cgo CFLAGS: -Wno-deprecated-declarations
2728
#cgo linux,!android CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1
2829
#ifndef USE_LIBSQLITE3

0 commit comments

Comments
 (0)