database

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 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 interface {
	Init(dsn string) (*gorm.DB, error)
}

func NewDatabase

func NewDatabase(env common.Environment) Database

type PostgresDB

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

func (*PostgresDB) Init

func (d *PostgresDB) Init(dsn string) (*gorm.DB, error)

type SQLiteDB

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

func (*SQLiteDB) Init

func (d *SQLiteDB) Init(dsn string) (*gorm.DB, error)

Jump to

Keyboard shortcuts

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