mysql

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnMysql

func ConnMysql(conn gotoc.DBConn, dbName string) (*sql.DB, error)

func ConvertSQLType

func ConvertSQLType(sqlType string) string

Types

type Field

type Field struct {
	Name    string
	Type    string
	Null    string
	Key     sql.NullString
	Default sql.NullString
	Extract sql.NullString
	Comment string
}

type Table

type Table struct {
	Name    string
	Comment string
	Fields  []*Field
}

func Desc

func Desc(db *sql.DB, tableName, dbName string) (*Table, error)

Jump to

Keyboard shortcuts

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