descriptor

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowTables added in v0.3.0

func ShowTables(db *sql.DB) ([]string, error)

Types

type FieldDescriptor

type FieldDescriptor struct {
	Field   string
	Type    string
	Null    string
	Key     string
	Default null.String
	Extra   string
}

FieldDescriptor represents a field described by the table in the SQL database

func Describe

func Describe(db *sql.DB, table string) ([]FieldDescriptor, error)

Describe try to get the fields of the table in the SQL database

Jump to

Keyboard shortcuts

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