databases

package
v0.0.0-...-ccbf6ad Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: GPL-3.0 Imports: 3 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 {
	Connect() (*gorm.DB, error)
	GetConnection() *gorm.DB
}

func NewMariaDB

func NewMariaDB(connStr string) Database

type MariaDB

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

func (*MariaDB) Connect

func (db *MariaDB) Connect() (*gorm.DB, error)

func (*MariaDB) GetConnection

func (db *MariaDB) GetConnection() *gorm.DB

Jump to

Keyboard shortcuts

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