driversql

package
v0.0.0-...-2246c2a Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMysqlOption

type DBMysqlOption struct {
	Host     string `deepcopier:"field:Host"`
	Port     string `deepcopier:"field:Port"`
	DB       string `deepcopier:"field:DB"`
	Username string `deepcopier:"field:Username"`
	Password string `deepcopier:"field:Password"`
}

type Database

type Database struct {
	Instance *gorm.DB
}

func NewMysqlDatabase

func NewMysqlDatabase(option DBMysqlOption) (database *Database, err error)

Jump to

Keyboard shortcuts

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