database

package
v0.0.0-...-beb73e8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context) (*sql.DB, error)

New creates a new SQLite database and runs all migrations

func SafeDefer

func SafeDefer(ctx context.Context, fn func() error)

SafeDefer calls the given function (typically a close/rollback) and logs if it returns an error. Designed to be used in defer statements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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