drivers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Connection() string
	Driver() string
	Insert(fields []string, table string) string
	MapField(string) Field
}

func New

func New(f Flags) Driver

type Field

type Field struct {
	Type   Type
	Length int16
	Enum   []string
}

type Flags

type Flags struct {
	Username string
	Password string
	Database string
	Host     string
	Port     string
	Driver   string
}

type MySQL

type MySQL struct {
	// contains filtered or unexported fields
}

func (MySQL) Connection

func (m MySQL) Connection() string

func (MySQL) Driver

func (m MySQL) Driver() string

func (MySQL) Insert

func (m MySQL) Insert(fields []string, table string) string

func (MySQL) MapField

func (m MySQL) MapField(field string) Field

type Type

type Type int16
const (
	String Type = iota
	Int16
	Int32
	Float
	Blob // base64
	Text
	Enum
	Bool
	Json
	Time
	Unknown
)

Jump to

Keyboard shortcuts

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