package sqlite
import (
"context"
"database/sql/driver"
)
func (c *conn ) Ping (ctx context .Context ) error {
_ , err := c .ExecContext (ctx , "select 1" , nil )
return err
}
func (c *conn ) BeginTx (ctx context .Context , opts driver .TxOptions ) (driver .Tx , error ) {
return c .begin (ctx , opts )
}
func (c *conn ) PrepareContext (ctx context .Context , query string ) (driver .Stmt , error ) {
return c .prepare (ctx , query )
}
func (c *conn ) ExecContext (ctx context .Context , query string , args []driver .NamedValue ) (driver .Result , error ) {
return c .exec (ctx , query , args )
}
func (c *conn ) QueryContext (ctx context .Context , query string , args []driver .NamedValue ) (driver .Rows , error ) {
return c .query (ctx , query , args )
}
func (s *stmt ) ExecContext (ctx context .Context , args []driver .NamedValue ) (driver .Result , error ) {
return s .exec (ctx , args )
}
func (s *stmt ) QueryContext (ctx context .Context , args []driver .NamedValue ) (driver .Rows , error ) {
return s .query (ctx , args )
}
The pages are generated with Golds v0.3.6 . (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .