db

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBName        = "hugobot.sqlite"
	DBPragma      = ` PRAGMA foreign_keys = ON; `
	DBBasePathEnv = "HUGOBOT_DB_PATH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoIncr

type AutoIncr struct {
	ID      int64     `json:"id"`
	Created time.Time `json:"created"`
}

type Database

type Database struct {
	Handle *sqlx.DB
}
var (
	DBOptions = map[string]string{
		"_journal_mode": "WAL",
	}

	DB *Database
)

func (*Database) Open

func (d *Database) Open() error

Jump to

Keyboard shortcuts

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