storage

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchemaVersion = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB represents the database connection

func NewDB

func NewDB(cfg *config.Config) (*DB, error)

NewDB creates a new database connection

func (*DB) Close

func (db *DB) Close() error

Close closes the database connection

func (*DB) GetConnection

func (db *DB) GetConnection() *sql.DB

GetConnection returns the underlying database connection

Jump to

Keyboard shortcuts

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