Documentation ¶
Overview ¶
Package schema enables checking the schema, both columns and indexes, of a database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TableNames ¶
func TableNames(tables interface{}) []string
TableNames takes in a "table type", that is a table whose fields are slices. Each field will be interpreted as a table. TableNames returns all expected table names in a string slice with table names lowercased.
For example:
"description", "taskresult"
Types ¶
type Description ¶
Description describes the schema for all tables.
func GetDescription ¶
GetDescription returns a Description populated for every table listed in `tables`.
Directories ¶
Path | Synopsis |
---|---|
Package exportschema contains a re-usable Main function that exports an SQL schema as a JSON seriailized schema.Description.
|
Package exportschema contains a re-usable Main function that exports an SQL schema as a JSON seriailized schema.Description. |
Click to show internal directories.
Click to hide internal directories.