Documentation ¶
Overview ¶
The psql package queries postgres meta tables to create a database db.
Index ¶
- func LoadColumnNodes(conn Conn, schema db.Schema, table db.Table) ([]db.ColumnNode, error)
- func LoadColumns(conn Conn, schemaName, tableName string) ([]db.Column, error)
- func LoadDatabaseNode(conn Conn) (db.DatabaseNode, error)
- func LoadExtensionNodes(conn Conn) ([]db.ExtensionNode, error)
- func LoadExtensions(conn Conn) ([]db.Extension, error)
- func LoadIndexExprs(conn Conn, schemaName, indexName string) ([]string, error)
- func LoadIndexNodes(conn Conn, schema db.Schema, table db.Table) ([]db.IndexNode, error)
- func LoadIndexes(conn Conn, schemaName, tableName string) ([]db.Index, error)
- func LoadSchemaNodes(conn Conn) ([]db.SchemaNode, error)
- func LoadSchemas(conn Conn) ([]db.Schema, error)
- func LoadTableNodes(conn Conn, schema db.Schema) ([]db.TableNode, error)
- func LoadTables(conn Conn, schemaName string) ([]db.Table, error)
- type Conn
- type ElementType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadColumnNodes ¶
func LoadDatabaseNode ¶
func LoadDatabaseNode(conn Conn) (db.DatabaseNode, error)
func LoadExtensionNodes ¶
func LoadExtensionNodes(conn Conn) ([]db.ExtensionNode, error)
func LoadIndexExprs ¶
func LoadIndexNodes ¶
func LoadSchemaNodes ¶
func LoadSchemaNodes(conn Conn) ([]db.SchemaNode, error)
Types ¶
type ElementType ¶ added in v0.0.6
type ElementType struct { ElementTypeId string DataType string NumericPrecision int NumericScale int }
func LoadElementTypes ¶ added in v0.0.6
func LoadElementTypes(conn Conn, schemaName, tableName string) ([]ElementType, error)
Click to show internal directories.
Click to hide internal directories.