Documentation
¶
Index ¶
- func CheckConstraints(db *sql.DB, schemaName, tableName string) ([]m.CheckConstraint, error)
- func Columns(db *sql.DB, schemaName, tableName string) ([]m.Column, error)
- func CurrentCatalog(db *sql.DB) (m.Catalog, error)
- func Dependencies(db *sql.DB, schemaName, objectName string) ([]m.Dependency, error)
- func Domains(db *sql.DB, schemaName string) ([]m.Domain, error)
- func Indexes(db *sql.DB, schemaName, tableName string) ([]m.Index, error)
- func Name() string
- func PrimaryKeys(db *sql.DB, schemaName, tableName string) ([]m.PrimaryKey, error)
- func ReferentialConstraints(db *sql.DB, schemaName, tableName string) ([]m.ReferentialConstraint, error)
- func Schemata(db *sql.DB, nclude, xclude string) ([]m.Schema, error)
- func Tables(db *sql.DB, schemaName string) ([]m.Table, error)
- func Types(db *sql.DB, schemaName string) ([]m.Type, error)
- func UniqueConstraints(db *sql.DB, schemaName, tableName string) ([]m.UniqueConstraint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConstraints ¶
CheckConstraints defines the query for obtaining the check constraints for the tables specified by the (schemaName, tableName) parameters and returns the results of executing the query
func Columns ¶
Columns defines the query for obtaining a list of columns for the (schemaName, tableName) parameters and returns the results of executing the query
func CurrentCatalog ¶
CurrentCatalog defines the query for obtaining information about the currently connected catalog (database) and returns the results of executing the query
func Dependencies ¶
Dependencies defines the query for obtaining a list of dependencies for the (schemaName, objectName) parameters and returns the results of executing the query
func Domains ¶
Domains defines the query for obtaining a list of domains for the (schemaName) parameters and returns the results of executing the query
func Indexes ¶
Indexes defines the query for obtaining a list of indexes for the (schemaName, tableName) parameters and returns the results of executing the query
func PrimaryKeys ¶
PrimaryKeys defines the query for obtaining the primary keys for the (schemaName, tableName) parameters and returns the results of executing the query
func ReferentialConstraints ¶
func ReferentialConstraints(db *sql.DB, schemaName, tableName string) ([]m.ReferentialConstraint, error)
ReferentialConstraints defines the query for obtaining the referential constraints for the (schemaName, tableName) parameters (as either the parent or child) and returns the results of executing the query
func Schemata ¶
Schemata defines the query for obtaining a list of schemata as filtered by the (nclude, xclude) parameters and returns the results of executing the query
func Tables ¶
Tables defines the query for obtaining a list of tables and views for the (schemaName) parameter and returns the results of executing the query
func Types ¶
Types returns an empty set of types as MS-SQL does not appear to support user defined types
func UniqueConstraints ¶
UniqueConstraints defines the query for obtaining a list of unique constraints for the (schemaName, tableName) parameters and returns the results of executing the query
Types ¶
This section is empty.