Documentation ¶
Index ¶
- func Up(ctx context.Context, db *Conn, fsys fs.FS) error
- type Conn
- func (c *Conn) Begin() (*Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) Exec(ctx context.Context, query string, args ...any) (int64, error)
- func (c *Conn) Query(ctx context.Context, query string, args ...any) (ScanIterator, error)
- func (c *Conn) QueryRow(ctx context.Context, query string, args ...any) Scanner
- type DB
- type ScanIterator
- type Scanner
- type Tx
- func (tx *Tx) Commit() error
- func (c *Tx) Exec(ctx context.Context, query string, args ...any) (int64, error)
- func (c *Tx) Query(ctx context.Context, query string, args ...any) (ScanIterator, error)
- func (c *Tx) QueryRow(ctx context.Context, query string, args ...any) Scanner
- func (tx *Tx) Rollback() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
type Tx ¶ added in v0.1.5
type Tx struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.