mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-03 20:21:44 +00:00
Windows: Statically linkable SQLite3
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// +build cgo,!windows
|
||||
|
||||
package graphdb
|
||||
|
||||
import _ "code.google.com/p/gosqlite/sqlite3" // registers sqlite
|
||||
@@ -0,0 +1,5 @@
|
||||
// +build cgo,windows
|
||||
|
||||
package graphdb
|
||||
|
||||
import _ "github.com/mattn/go-sqlite3" // registers sqlite
|
||||
Reference in New Issue
Block a user