orm

package
v0.0.0-...-61190b0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func InitDB

func InitDB() error

func Setup

func Setup() (*gorm.DB, error)

Types

type Database

type Database interface {
	Open(logLevel logger.LogLevel) (db *gorm.DB, err error)
}

type DbConfig

type DbConfig struct {
	Host     string
	Port     string
	Name     string
	Username string
	Password string
}

type Mysql

type Mysql struct {
}

func (*Mysql) Open

func (e *Mysql) Open(logLevel logger.LogLevel) (db *gorm.DB, err error)

type Sqlite

type Sqlite struct {
}

func (*Sqlite) Open

func (e *Sqlite) Open(logLevel logger.LogLevel) (db *gorm.DB, err error)

Jump to

Keyboard shortcuts

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