// SoftHeapLimit sets and/or queries the soft limit on the amount of heap memory // that may be allocated by SQLite. A negative value for n keeps the current // limit, while 0 removes the limit. The previous limit value is returned, with // negative values indicating an error. // [http://www.sqlite.org/c3ref/soft_heap_limit64.html] func SoftHeapLimit(n int64) int64 { if initErr != nil { return -1 } return int64(C.sqlite3_soft_heap_limit64(C.sqlite3_int64(n))) }
// SetSoftHeapLimit imposes a limit on heap size. // (See http://sqlite.org/c3ref/soft_heap_limit64.html) func SetSoftHeapLimit(n int64) int64 { return int64(C.sqlite3_soft_heap_limit64(C.sqlite3_int64(n))) }