mysql

package
v0.0.0-...-cba6ad5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUser = "default"
View Source
const DriverMysql = "mysql"

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name  string
	Type  string
	Is_PK bool
}

type Table

type Table struct {
	Name   string
	Fields []Field
}

type Transport

type Transport struct{}

func NewTransport

func NewTransport() *Transport

func (*Transport) CreateTable

func (t *Transport) CreateTable(ctx context.Context, endpoints []string, sql string) error

func (*Transport) ExceSQL

func (t *Transport) ExceSQL(ctx context.Context, endpoints []string, sql string) error

func (*Transport) TableInfo

func (t *Transport) TableInfo(ctx context.Context, endpoints []string, tableName string) (*Table, error)

func (*Transport) TableList

func (t *Transport) TableList(ctx context.Context, endpoints []string) (elem []string, err error)

Jump to

Keyboard shortcuts

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