From ebb175735b944bed52645590d75909a2d3ca8b74 Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Wed, 23 May 2018 22:21:51 +0200 Subject: [PATCH] Add: SQLITE_DEFAULT_AUTOVACUUM --- sqlite3_opt_vacuum_full.go | 13 +++++++++++++ sqlite3_opt_vacuum_incr.go | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 sqlite3_opt_vacuum_full.go create mode 100644 sqlite3_opt_vacuum_incr.go diff --git a/sqlite3_opt_vacuum_full.go b/sqlite3_opt_vacuum_full.go new file mode 100644 index 0000000..73881a2 --- /dev/null +++ b/sqlite3_opt_vacuum_full.go @@ -0,0 +1,13 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. +// +build vacuum_full + +package sqlite3 + +/* +#cgo CFLAGS: -DSQLITE_DEFAULT_AUTOVACUUM=1 +#cgo LDFLAGS: -lm +*/ +import "C" diff --git a/sqlite3_opt_vacuum_incr.go b/sqlite3_opt_vacuum_incr.go new file mode 100644 index 0000000..9b31a80 --- /dev/null +++ b/sqlite3_opt_vacuum_incr.go @@ -0,0 +1,13 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. +// +build vacuum_incr + +package sqlite3 + +/* +#cgo CFLAGS: -DSQLITE_DEFAULT_AUTOVACUUM=2 +#cgo LDFLAGS: -lm +*/ +import "C"