msql

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column added in v0.8.0

type Column struct {
	Field      string  `db:"Field"`
	Type       string  `db:"Type"`
	Collation  *string `db:"Collation"`
	Null       string  `db:"Null"`
	Key        string  `db:"Key"`
	Default    *string `db:"Default"`
	Extra      string  `db:"Extra"`
	Privileges string  `db:"Privileges"`
	Comment    string  `db:"Comment"`
}

type Config

type Config struct {
	Username string
	Password string
	Type     string
	Host     string
	Port     int
	Database string
}

type DB added in v0.8.0

type DB struct {
	*sqlx.DB
}

func Open added in v0.2.6

func Open(driveName, dataSourceName string) (*DB, error)

func (*DB) GetColumns added in v0.8.0

func (db *DB) GetColumns(table string) ([]*Column, error)

func (*DB) GetTables added in v0.8.0

func (db *DB) GetTables() ([]string, error)

Jump to

Keyboard shortcuts

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