mssql

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConstraints

func CheckConstraints(db *sql.DB, schemaName, tableName string) ([]m.CheckConstraint, error)

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

func Columns(db *sql.DB, schemaName, tableName string) ([]m.Column, error)

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

func CurrentCatalog(db *sql.DB) (m.Catalog, error)

CurrentCatalog defines the query for obtaining information about the currently connected catalog (database) and returns the results of executing the query

func Dependencies

func Dependencies(db *sql.DB, schemaName, objectName string) ([]m.Dependency, error)

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

func Domains(db *sql.DB, schemaName string) ([]m.Domain, error)

Domains defines the query for obtaining a list of domains for the (schemaName) parameters and returns the results of executing the query

func Indexes

func Indexes(db *sql.DB, schemaName, tableName string) ([]m.Index, error)

Indexes defines the query for obtaining a list of indexes for the (schemaName, tableName) parameters and returns the results of executing the query

func Name

func Name() string

Name returns the name of the specific database engine

func PrimaryKeys

func PrimaryKeys(db *sql.DB, schemaName, tableName string) ([]m.PrimaryKey, error)

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

func Schemata(db *sql.DB, nclude, xclude string) ([]m.Schema, error)

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

func Tables(db *sql.DB, schemaName string) ([]m.Table, error)

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

func Types(db *sql.DB, schemaName string) ([]m.Type, error)

Types returns an empty set of types as MS-SQL does not appear to support user defined types

func UniqueConstraints

func UniqueConstraints(db *sql.DB, schemaName, tableName string) ([]m.UniqueConstraint, error)

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.

Jump to

Keyboard shortcuts

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