Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSchemaNameValid ¶
IsSchemaNameValid :: verifies that the given string is a valid pgsql schema name
Types ¶
type ColumnSchema ¶
type ColumnSchema struct {
ID string
Name string
NotNull bool
Type string
Default string
Description string
}
ColumnSchema :: contains the details of a single column in a table
type Metadata ¶
type Metadata struct {
// map {schemaname, {map tablename -> tableschema}}
Schemas map[string]map[string]TableSchema
}
Metadata :: struct to represent the schema of the database
func (*Metadata) GetSchemas ¶
GetSchemas :: returns all foreign schema names
func (*Metadata) GetTablesInSchema ¶
GetTablesInSchema :: returns all foreign tables in a given foreign schema
type TableSchema ¶
type TableSchema struct {
// map {columnName -> columnschema}
Columns map[string]ColumnSchema
Name string
Schema string
Description string
}
TableSchema :: contains the details of a single table in the schema
Click to show internal directories.
Click to hide internal directories.