mysql

package
v0.0.0-...-3ada85e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* * @Author: myxy99 <[email protected]> * @Date: 2020/7/27 12:23

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBuild

func DefaultBuild() module.Invoker

default invoker build

func Provider

func Provider(cfg CallerCfg) (o orm.Ormer, err error)

Types

type CallerCfg

type CallerCfg struct {
	Username       string `ini:"username"`
	Password       string `ini:"password"`
	Addr           string `ini:"addr"`
	AliasName      string `ini:"aliasName"`
	MaxIdleConns   int    `ini:"maxIdleConns"`
	MaxOpenConns   int    `ini:"maxOpenConns"`
	DefaultTimeLoc string `ini:"defaultTimeLoc"`
	Network        string `ini:"network"`
	Db             string `ini:"db"`
	Charset        string `ini:"charset"`
	ParseTime      string `ini:"parseTime"`
	Loc            string `ini:"loc"`
}

type Client

type Client struct {
	Cfg CallerCfg
	O   orm.Ormer
}

func Invoker

func Invoker(name string) *Client

Jump to

Keyboard shortcuts

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