mysql

package
v0.0.0-...-7c99e32 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	*Config
}

func CreateBuilder

func CreateBuilder(path string) *Builder

func (*Builder) Build

func (b *Builder) Build(opts ...Option) *Builder

func (*Builder) Run

func (b *Builder) Run() *sql.DB

type Config

type Config struct {
	Host     string
	Port     string
	Database string
	UserName string
	Password string
	Charset  string
}

type Option

type Option func(*Builder)

func WithAddr

func WithAddr(port string) Option

func WithHost

func WithHost(h string) Option

Jump to

Keyboard shortcuts

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