pkg

package
v0.0.0-...-b063506 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverName = "mysql"
)

Variables

This section is empty.

Functions

func GenerateMysqlSource

func GenerateMysqlSource(username string, password string, dbhost string, dbport int, database string) string

func NewMysqlEngine

func NewMysqlEngine(driverName string, sourceName string, prefix string) (*xorm.Engine, error)

Types

type Config

type Config struct {
	Port  int
	Mysql MysqlConfig
}

type MysqlConfig

type MysqlConfig struct {
	User     string
	Password string
	Host     string
	Database string
	Prefix   string
	Port     int
}

Jump to

Keyboard shortcuts

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