Skip to content

Commit ebb1757

Browse files
committed
Add: SQLITE_DEFAULT_AUTOVACUUM
1 parent 6929098 commit ebb1757

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

sqlite3_opt_vacuum_full.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
2+
//
3+
// Use of this source code is governed by an MIT-style
4+
// license that can be found in the LICENSE file.
5+
// +build vacuum_full
6+
7+
package sqlite3
8+
9+
/*
10+
#cgo CFLAGS: -DSQLITE_DEFAULT_AUTOVACUUM=1
11+
#cgo LDFLAGS: -lm
12+
*/
13+
import "C"

sqlite3_opt_vacuum_incr.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Copyright (C) 2014 Yasuhiro Matsumoto <[email protected]>.
2+
//
3+
// Use of this source code is governed by an MIT-style
4+
// license that can be found in the LICENSE file.
5+
// +build vacuum_incr
6+
7+
package sqlite3
8+
9+
/*
10+
#cgo CFLAGS: -DSQLITE_DEFAULT_AUTOVACUUM=2
11+
#cgo LDFLAGS: -lm
12+
*/
13+
import "C"

0 commit comments

Comments
 (0)