github.com/rentongzhang/docker@v1.8.2-rc1/pkg/graphdb/conn_sqlite3.go (about) 1 package graphdb 2 3 import "database/sql" 4 5 // NewSqliteConn opens a connection to a sqlite 6 // database. 7 func NewSqliteConn(root string) (*Database, error) { 8 conn, err := sql.Open("sqlite3", root) 9 if err != nil { 10 return nil, err 11 } 12 return NewDatabase(conn) 13 }