Windows: Statically linkable SQLite3

Signed-off-by: John Howard <jhoward@microsoft.com>
Upstream-commit: 10bcaca914b32af29d8ce9974c5f5656a2f8cc1d
Component: engine
This commit is contained in:
John Howard
2015-05-30 16:05:12 -07:00
committed by John Howard
parent 1ce6cfdc98
commit f8dc4be64b
21 changed files with 156884 additions and 12 deletions

View File

@ -1,12 +1,6 @@
// +build cgo
package graphdb
import (
"database/sql"
_ "code.google.com/p/gosqlite/sqlite3" // registers sqlite
)
import "database/sql"
// NewSqliteConn opens a connection to a sqlite
// database.
@ -15,6 +9,5 @@ func NewSqliteConn(root string) (*Database, error) {
if err != nil {
return nil, err
}
return NewDatabase(conn)
}

View File

@ -0,0 +1,5 @@
// +build cgo,!windows
package graphdb
import _ "code.google.com/p/gosqlite/sqlite3" // registers sqlite

View File

@ -0,0 +1,5 @@
// +build cgo,windows
package graphdb
import _ "github.com/mattn/go-sqlite3" // registers sqlite