Documentation ¶
Overview ¶
The connectorsqlite package has ready-made "database/sql/driver.Connector" for "github.com/mattn/go-sqlite3"
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnector ¶
Example ¶
// For more information, visit https://github.com/senzing-garage/go-databasing/blob/main/connectorsqlite/connectorsqlite_examples_test.go ctx := context.TODO() configuration := "/tmp/sqlite/G2C.db" databaseConnector, err := NewConnector(ctx, configuration) if err != nil { fmt.Println(err, databaseConnector) }
Output:
Types ¶
type Sqlite ¶
type Sqlite struct {
Filename string
}
Connector represents a fixed configuration for the pq driver with a given name. Connector satisfies the database/sql/driver Connector interface and can be used to create any number of DB Conn's via the database/sql OpenDB function.
See https://golang.org/pkg/database/sql/driver/#Connector. See https://golang.org/pkg/database/sql/#OpenDB.
Click to show internal directories.
Click to hide internal directories.