Documentation ¶
Overview ¶
Package driver is a limited, specialized binding to a customized SQLite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //NotImplemented is returned when this package is //compiled without cgo. NotImplemented = errors.New("not implemented") )
Functions ¶
Types ¶
type BulkLoader ¶
type BulkLoader struct {
// contains filtered or unexported fields
}
BulkLoader is a reverse iterator for shoveling data into SQLite.
func (*BulkLoader) Close ¶
func (b *BulkLoader) Close() error
Close flushes any remaining rows. It does not Close the underlying prepared statement.
func (*BulkLoader) Load ¶
func (b *BulkLoader) Load(vs []*string) error
Load queues a row for loading and loads many rows in bulk when an internal limit is hit
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
A Conn represents a connection to an underlying sqlite database.
type ErrDriverMisuse ¶
type ErrDriverMisuse struct {
// contains filtered or unexported fields
}
func (ErrDriverMisuse) Error ¶
func (e ErrDriverMisuse) Error() string
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
Iter represents iterator over the results of a query.
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
A Stmt is a prepared query. Stmt exposes a number of APIs depending on the kind of query and its intended use.
The most common is a statement that may return 0 or more results. For that there is Iter.
A statement that loads into the database uses BulkLoad.
Occasionally it's known that a statement returns no results, accepts no parameters, and is used only once. For that, there is Exec.