util

package
v0.0.0-...-dab88e5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoMigrations

func DoMigrations(log *slog.Logger, pool *sqlitex.Pool, migrations []string) error

func GetGitDir

func GetGitDir(repo *git.Repository) string

func GetIntPragma

func GetIntPragma(pool *sqlitex.Pool, ctx context.Context, pragma string) (int64, error)

func GetLogger

func GetLogger() *slog.Logger

func GetStringPragma

func GetStringPragma(pool *sqlitex.Pool, ctx context.Context, pragma string) (string, error)

func RawExec

func RawExec(pool *sqlitex.Pool, ctx context.Context, query string) error

func SetIntPragma

func SetIntPragma(pool *sqlitex.Pool, ctx context.Context, pragma string, value int64) error

func SetStringPragma

func SetStringPragma(pool *sqlitex.Pool, ctx context.Context, pragma string, value string) error

func TriggerPragma

func TriggerPragma(pool *sqlitex.Pool, ctx context.Context, pragma string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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