pool

package
v0.8.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongPool = errors.New("returning object to wrong pool")

Functions

func OpenRaw

func OpenRaw(dns string) (*sql.DB, *sqlite3.SQLiteConn, error)

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) Connect

func (SqliteDriverConnector) Driver

func (t SqliteDriverConnector) Driver() driver.Driver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL