db

package
v0.0.0-...-63f4637 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DatabaseURI string
}

Config is the database configuration struct.

func NewConfig

func NewConfig() *Config

NewConfig returns the configuration object.

type Database

type Database struct {
	*gorm.DB
}

Database is the database connection.

func NewConnection

func NewConnection() *Database

NewConnection returns a new database connection.

func (*Database) RegisterApp

func (d *Database) RegisterApp(a Migratable)

RegisterApp register the applications.

type Migratable

type Migratable interface {
	Migrate()
}

Migratable do the database migrations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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