memmysql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close stop background server instance

Types

type Config

type Config struct {
	Host   string
	Port   int
	User   string
	Passwd string
	DB     string
}

Config return by Run method. used to connect go-mysql-server

func Run

func Run() (*Config, error)

Run start a go-mysql-server instance in background and return corresponding config which used to connect to the server

func (*Config) DSN

func (c *Config) DSN(params url.Values) string

DSN build data source name according config property and params if specfic

Jump to

Keyboard shortcuts

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