rdb

package
v0.0.0-...-90656f1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFakeRDB

func InitFakeRDB()

func InitRDB

func InitRDB(options ...func(*rdb) error) error

func Mysql

func Mysql(username, password, host, port, dbName string) func(*rdb) error

func Postgres

func Postgres(username, password, host, port, dbName string) func(*rdb) error

func Sqlite

func Sqlite(username, password, host, port, dbName string) func(*rdb) error

Types

type FakeORM

type FakeORM struct{}

func (*FakeORM) Conn

func (a *FakeORM) Conn() *gorm.DB

type ORM

type ORM interface {
	Conn() *gorm.DB
}
var RDB ORM

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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