dbconfig

package
v2.16.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCharset = `utf8`

Functions

func EncoderRegister

func EncoderRegister(engine string, encoder Encoder)

func EncoderUnregister

func EncoderUnregister(engine string) bool

Types

type Config

type Config struct {
	Engine  string
	User    string
	Pass    string
	Name    string
	Host    string
	Port    string
	Charset string
	Prefix  string
	Options map[string]string
}

func (*Config) String

func (c *Config) String() string

type Encoder

type Encoder func(*Config) string

func EncoderGet

func EncoderGet(engine string) Encoder

Jump to

Keyboard shortcuts

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