db

package
v0.0.0-...-769c1bd Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func P

func P[T any](v T) *T

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, path string) (DB, error)

func (*DB) Exec

func (d *DB) Exec(ctx context.Context, query string, args []any, fn func(stmt *sqlite.Stmt) error) error

func (*DB) Schema

func (d *DB) Schema(ctx context.Context) ([]string, error)

func (*DB) Take

func (d *DB) Take(ctx context.Context) (*sqlite.Conn, func(), error)

func (*DB) Version

func (d *DB) Version(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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