From ec379a302178b458779fde3d9c3a39305fde448b Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 4 Mar 2016 09:59:27 -0600 Subject: [PATCH 1/2] Conditional build for the FTS5 Extension --- sqlite3_fts5.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sqlite3_fts5.go diff --git a/sqlite3_fts5.go b/sqlite3_fts5.go new file mode 100644 index 00000000..6e0058db --- /dev/null +++ b/sqlite3_fts5.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 json1 + +package sqlite3 + +/* +#cgo CFLAGS: -DSQLITE_ENABLE_FTS5 +#cgo LDFLAGS: -lm +*/ +import "C" From 0bed72d6897a90f3ffdee018788298f2f3859741 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Fri, 4 Mar 2016 10:01:06 -0600 Subject: [PATCH 2/2] Use fts5 build tag :) --- sqlite3_fts5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3_fts5.go b/sqlite3_fts5.go index 6e0058db..0e65d69a 100644 --- a/sqlite3_fts5.go +++ b/sqlite3_fts5.go @@ -2,7 +2,7 @@ // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. -// +build json1 +// +build fts5 package sqlite3