database

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(database *Database, debug bool) (*gorm.DB, error)

Types

type Database

type Database struct {
	Connection     string
	Host           string
	Port           string
	Username       string
	Password       string
	Name           string
	SSLMode        string
	ParseTime      string
	Charset        string
	Timezone       string
	ConnectTimeout string
}

func (*Database) MySQL

func (database *Database) MySQL() (*gorm.DB, error)

func (*Database) PostgreSQL

func (database *Database) PostgreSQL() (*gorm.DB, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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