Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongPool = errors.New("returning object to wrong pool")
Functions ¶
Types ¶
type ConnectionDisposer ¶
type ConnectionDisposer interface {
Dispose(obj *SQLiteConnection) error
}
type SQLiteConnection ¶
type SQLiteConnection struct {
// contains filtered or unexported fields
}
func (*SQLiteConnection) DB ¶
func (q *SQLiteConnection) DB() *goqu.Database
func (*SQLiteConnection) Raw ¶
func (q *SQLiteConnection) Raw() *sqlite3.SQLiteConn
func (*SQLiteConnection) Return ¶
func (q *SQLiteConnection) Return() error
func (*SQLiteConnection) SQL ¶
func (q *SQLiteConnection) SQL() *sql.DB
type SQLitePool ¶
type SQLitePool struct {
// contains filtered or unexported fields
}
func NewSQLitePool ¶
func NewSQLitePool(dns string, poolSize int, lazy bool) (*SQLitePool, error)
func (*SQLitePool) Borrow ¶
func (q *SQLitePool) Borrow() (*SQLiteConnection, error)
func (*SQLitePool) Dispose ¶
func (q *SQLitePool) Dispose(obj *SQLiteConnection) error
type SqliteDriverConnector ¶
type SqliteDriverConnector struct {
// contains filtered or unexported fields
}
func (SqliteDriverConnector) Driver ¶
func (t SqliteDriverConnector) Driver() driver.Driver
Click to show internal directories.
Click to hide internal directories.