db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyTables added in v0.2.0

func EmptyTables(db *goqu.Database, tables ...string) error

EmptyTables is used to empty a collection of tables. This may be useful if truncating a table is not possible.

func SetupAndMigratePostgresDB added in v0.2.0

func SetupAndMigratePostgresDB(dsn string, maxConnections int) (*sql.DB, *goqu.Database, error)

func SetupPostgresDB added in v0.2.0

func SetupPostgresDB(dsn string, maxConnections int) (*sql.DB, *goqu.Database, error)

Types

type Database

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

Database implements the applications core logic.

func NewDatabase

func NewDatabase(db *goqu.Database) *Database

func (*Database) CreateDomain

func (db *Database) CreateDomain(domain string) error

func (*Database) Resolve

func (db *Database) Resolve(domain, name string) (string, error)

func (*Database) SavePURL

func (db *Database) SavePURL(domain, name, target string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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