db

package
v0.0.0-...-15b6e06 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseBackend

type DatabaseBackend interface {
	Exec(sql string) error
	Database() *sql.DB
	Close() error
}

func New

func New(driverName, url string) (DatabaseBackend, error)

func NewDBBackend

func NewDBBackend() (DatabaseBackend, error)

type SqliteBackend

type SqliteBackend struct {
	DB *sql.DB
}

func (*SqliteBackend) Close

func (backend *SqliteBackend) Close() error

func (*SqliteBackend) Database

func (backend *SqliteBackend) Database() *sql.DB

func (*SqliteBackend) Exec

func (backend *SqliteBackend) Exec(sql string) error

Jump to

Keyboard shortcuts

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