tables

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TableCatalogCol              gnorm.SqlNullStringField = "table_catalog"
	TableSchemaCol               gnorm.SqlNullStringField = "table_schema"
	TableNameCol                 gnorm.SqlNullStringField = "table_name"
	TableTypeCol                 gnorm.SqlNullStringField = "table_type"
	SelfReferencingColumnNameCol gnorm.SqlNullStringField = "self_referencing_column_name"
	ReferenceGenerationCol       gnorm.SqlNullStringField = "reference_generation"
	UserDefinedTypeCatalogCol    gnorm.SqlNullStringField = "user_defined_type_catalog"
	UserDefinedTypeSchemaCol     gnorm.SqlNullStringField = "user_defined_type_schema"
	UserDefinedTypeNameCol       gnorm.SqlNullStringField = "user_defined_type_name"
	IsInsertableIntoCol          gnorm.SqlNullStringField = "is_insertable_into"
	IsTypedCol                   gnorm.SqlNullStringField = "is_typed"
	CommitActionCol              gnorm.SqlNullStringField = "commit_action"
)

Field values for every column in Tables.

Functions

This section is empty.

Types

type Row

type Row struct {
	TableCatalog              sql.NullString // table_catalog
	TableSchema               sql.NullString // table_schema
	TableName                 sql.NullString // table_name
	TableType                 sql.NullString // table_type
	SelfReferencingColumnName sql.NullString // self_referencing_column_name
	ReferenceGeneration       sql.NullString // reference_generation
	UserDefinedTypeCatalog    sql.NullString // user_defined_type_catalog
	UserDefinedTypeSchema     sql.NullString // user_defined_type_schema
	UserDefinedTypeName       sql.NullString // user_defined_type_name
	IsInsertableInto          sql.NullString // is_insertable_into
	IsTyped                   sql.NullString // is_typed
	CommitAction              sql.NullString // commit_action
}

Row represents a row from 'tables'.

func Query

func Query(db gnorm.DB, where gnorm.WhereClause) ([]*Row, error)

Query retrieves rows from 'tables' as a slice of Row.

Jump to

Keyboard shortcuts

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