db

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewFakeServerDatabase

func NewFakeServerDatabase() *Database

func NewInMemoryDatabase

func NewInMemoryDatabase() *Database

func NewServerDatabase

func NewServerDatabase(c config.Database) *Database

func (*Database) Close

func (d *Database) Close() error

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