databases

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(database *Database) (*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
}

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