Documentation ¶
Index ¶
- Variables
- func GetCurrentMigrationVersion(conn Conn) (int, error)
- func MigrateAll(conn Conn, migrations []Migration) error
- func Scalar[T any](conn Conn, sql string, args ...any) (T, error)
- type Conn
- func (c Conn) IsNotFound(err error) bool
- func (_ Conn) JSON(value any) (any, error)
- func (_ Conn) Placeholder(i int) string
- func (c Conn) RowToMap(sql string, args ...any) (typed.Typed, error)
- func (c Conn) RowsToMap(sql string, args ...any) ([]typed.Typed, error)
- func (c Conn) TableExists(tableName string) (bool, error)
- type Migrate
- type Migration
- type Scanner
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoRows = sqlite.ErrNoRows
)
Functions ¶
func MigrateAll ¶
Types ¶
type Conn ¶
func (Conn) IsNotFound ¶
func (Conn) JSON ¶ added in v0.0.7
Exists for our test factory which are designed to work with different databases And, for SQLite, we can't just pass any object in to have it converted to JSON
func (Conn) Placeholder ¶
Exists for our test factory which are designed to work with different databases
Click to show internal directories.
Click to hide internal directories.