Add: SQLITE_DEFAULT_FOREIGN_KEYS

fix-635
Gert-Jan Timmer 2018-05-23 22:21:00 +02:00
parent 507e9be49b
commit e2fc6d49c6
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// Copyright (C) 2014 Yasuhiro Matsumoto <mattn.jp@gmail.com>.
//
// 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"