dbconfig

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

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