sqlite

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigrateDown

func RunMigrateDown(db *sql.DB) error

func RunMigrateUp

func RunMigrateUp(db *sql.DB) error

Types

type DB

type DB struct {
	SqlDB  *sql.DB
	SqlxDB *sqlx.DB
}

database.Database の実装

func NewDatabase

func NewDatabase(ctx context.Context, cfg *config.Config) (*DB, error)

func (*DB) Close

func (d *DB) Close()

func (*DB) NamedExec

func (db *DB) NamedExec(ctx context.Context, query string, arg interface{}) (database.Result, error)

func (*DB) Select

func (db *DB) Select(ctx context.Context, dest interface{}, query string, args ...interface{}) error

Jump to

Keyboard shortcuts

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