database

package
v0.0.0-...-76727dd Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MYSQL    dbtype = "mysql"
	POSTGRES dbtype = "postgres"
	SQLITE   dbtype = "sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*sqlx.DB
	// contains filtered or unexported fields
}

Database provides an sqlx embedded database.

func New

func New(dbtype dbtype, driver, dsn string) *Database

New returns a new Database.

func (*Database) Type

func (d *Database) Type() dbtype

Type returns the database type (i.e., SQLITE, POSTGRES, etc).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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