From e2fc6d49c609a3ad60c3a43d60089f27dd79b56d Mon Sep 17 00:00:00 2001 From: Gert-Jan Timmer Date: Wed, 23 May 2018 22:21:00 +0200 Subject: [PATCH] Add: SQLITE_DEFAULT_FOREIGN_KEYS --- sqlite3_opt_foreign_keys.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sqlite3_opt_foreign_keys.go diff --git a/sqlite3_opt_foreign_keys.go b/sqlite3_opt_foreign_keys.go new file mode 100644 index 0000000..4aa938c --- /dev/null +++ b/sqlite3_opt_foreign_keys.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 foreign_keys + +package sqlite3 + +/* +#cgo CFLAGS: -DSQLITE_DEFAULT_FOREIGN_KEYS=1 +#cgo LDFLAGS: -lm +*/ +import "C"