Versions in this module Expand all Collapse all v0 v0.1.1 May 24, 2026 v0.1.0 May 24, 2026 Changes in this version + type Connect struct + Host string + Identifier string + TX any + Timeout time.Duration + func New() *Connect + func (c *Connect) AnalyzeSQL(sql string) (prepared string, placeholders int, err error) + func (c *Connect) Close() + func (c *Connect) Connection() (db.Config, *sql.DB) + func (c *Connect) CreatePool(cfg db.Config) error + func (c *Connect) DriverName() string + func (c *Connect) Exec(q db.Query) (db.Result, error) + func (c *Connect) ExecCtx(ctx context.Context, q db.Query) (db.Result, error) + func (c *Connect) Fork() db.Conn + func (c *Connect) LoadFile() string + func (c *Connect) Query(query db.Query, each func(row map[string]any) error) error + func (c *Connect) QueryCtx(ctx context.Context, query db.Query, each func(row map[string]any) error) error + func (c *Connect) QueryRows(ctx context.Context, q db.Query) (mapper.Rows, error) + func (c *Connect) SelectSQL(q db.DialectSQL) string + func (c *Connect) Settings(identifier string) error + func (c *Connect) Transaction(fn func(tx db.Conn) error) (retErr error) + func (c *Connect) TransactionCtx(ctx context.Context, fn func(tx db.Conn) error) (retErr error) + type Pool struct + ConfigKey string + Connect db.Config + Connection *sql.DB + PoolKey string + Refs int + type Result struct + func (r Result) LastInsertId() int64 + func (r Result) RowsAffected() int64