model

package
v0.0.0-...-42cc326 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMysqlDB

func GetMysqlDB(connection string) (*gorm.DB, error)

GetMysqlDB returns a mysql interface using GORM.

func GetPostgreDB

func GetPostgreDB(connection string) (*gorm.DB, error)

GetPostgreDB returns a postgresql interface using GORM.

func GetSqliteDB

func GetSqliteDB(connection string) (*gorm.DB, error)

GetSqliteDB returns a sqlite3 interface using GORM. A filepath of ":memory:" provides a in memory database.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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