db

package
v0.0.0-...-474332a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Open() error
	Close() error
	DB() *sqlx.DB
	Ping() error
	Migrate(schema string) error
}

type LibSQLDB

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

func NewLibSQLDatabase

func NewLibSQLDatabase(dataSourceName string) *LibSQLDB

func (*LibSQLDB) Close

func (l *LibSQLDB) Close() error

func (*LibSQLDB) DB

func (l *LibSQLDB) DB() *sqlx.DB

func (*LibSQLDB) Open

func (l *LibSQLDB) Open() error

func (*LibSQLDB) Ping

func (l *LibSQLDB) Ping() error

type TursoDB

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

func NewTursoDatabase

func NewTursoDatabase(dataSourceName string) *TursoDB

func (*TursoDB) Close

func (l *TursoDB) Close() error

func (*TursoDB) DB

func (l *TursoDB) DB() *sqlx.DB

func (*TursoDB) Open

func (l *TursoDB) Open() error

func (*TursoDB) Ping

func (l *TursoDB) Ping() error

Jump to

Keyboard shortcuts

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