database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTime

type DBTime struct {
	time.Time
}

DBTime is only needed for aggregate functions (MAX, MIN etc.) that return TEXT even for DATETIME columns. Regular columns declared as DATETIME scan directly into time.Time when using modernc.org/sqlite with _texttotime=1 in the DSN.

func (*DBTime) Scan

func (t *DBTime) Scan(value any) error

func (DBTime) Value

func (t DBTime) Value() (driver.Value, error)

type SQLite

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

func NewSQLite

func NewSQLite(dbConf config.ConfDB) (*SQLite, error)

func (*SQLite) Close

func (s *SQLite) Close() error

func (*SQLite) DB

func (s *SQLite) DB() *sqlx.DB

func (*SQLite) Migrate

func (s *SQLite) Migrate() error

Jump to

Keyboard shortcuts

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