schema

package
v0.0.0-...-4c1e4d6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaHandler

type SchemaHandler struct {
	Logger *log.Logger
	Store  *SchemaStore
}

func (*SchemaHandler) ServeHTTP

func (h *SchemaHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SchemaItem

type SchemaItem struct {
	TableName  string `json:"table_name"`
	ColumnName string `json:"column_name"`
	DataType   string `json:"data_type"`
}

type SchemaStore

type SchemaStore struct {
	*sqlx.DB
}

func (*SchemaStore) GetSchema

func (store *SchemaStore) GetSchema() (*[]SchemaItem, error)

Jump to

Keyboard shortcuts

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