Help us shape the future of Go! Take the 2026 Go Developer Survey

database

package
v0.1.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package database owns the controller's SQLite connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

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

Migrate updates db to the current schema version.

func OpenExistingFile

func OpenExistingFile(ctx context.Context, path string) (*sql.DB, error)

OpenExistingFile opens an existing SQLite file without creating it or its directory.

func OpenFile

func OpenFile(
	ctx context.Context,
	path string,
) (*sql.DB, error)

OpenFile creates the database directory and opens a SQLite file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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