msql

package
v0.10.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: 6 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
	// Type eg: "varchar" | "bigint"
	Type       string
	Unsigned   bool
	Len        int
	Nullable   bool
	Default    *string
	Privileges string
	Comment    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