ischema

package
v0.0.0-...-de94dfd Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ischema contains generated code for schema 'information_schema'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(s string, v ...interface{})

Errorf logs an error message using the package error logger.

func Logf

func Logf(s string, v ...interface{})

Logf logs a message using the package logger.

func PgCharMaxLength

func PgCharMaxLength(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgCharMaxLength calls the stored function 'information_schema._pg_char_max_length(oid, integer) integer' on db.

func PgCharOctetLength

func PgCharOctetLength(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgCharOctetLength calls the stored function 'information_schema._pg_char_octet_length(oid, integer) integer' on db.

func PgDatetimePrecision

func PgDatetimePrecision(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgDatetimePrecision calls the stored function 'information_schema._pg_datetime_precision(oid, integer) integer' on db.

func PgExpandarray

func PgExpandarray(ctx context.Context, db DB, p0 pgtypes.Anyarray) (pgtypes.Anyelement, int, error)

PgExpandarray calls the stored function 'information_schema._pg_expandarray(anyarray) (anyelement, integer)' on db.

func PgIndexPosition

func PgIndexPosition(ctx context.Context, db DB, p0 pgtypes.Oid, p1 int16) (int, error)

PgIndexPosition calls the stored function 'information_schema._pg_index_position(oid, smallint) integer' on db.

func PgIntervalType

func PgIntervalType(ctx context.Context, db DB, typid pgtypes.Oid, mod int) (string, error)

PgIntervalType calls the stored function 'information_schema._pg_interval_type(oid, integer) text' on db.

func PgNumericPrecision

func PgNumericPrecision(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgNumericPrecision calls the stored function 'information_schema._pg_numeric_precision(oid, integer) integer' on db.

func PgNumericPrecisionRadix

func PgNumericPrecisionRadix(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgNumericPrecisionRadix calls the stored function 'information_schema._pg_numeric_precision_radix(oid, integer) integer' on db.

func PgNumericScale

func PgNumericScale(ctx context.Context, db DB, typid pgtypes.Oid, typmod int) (int, error)

PgNumericScale calls the stored function 'information_schema._pg_numeric_scale(oid, integer) integer' on db.

func PgTruetypid

func PgTruetypid(ctx context.Context, db DB, p0 pgtypes.PgAttribute, p1 pgtypes.PgType) (pgtypes.Oid, error)

PgTruetypid calls the stored function 'information_schema._pg_truetypid(pg_attribute, pg_type) oid' on db.

func PgTruetypmod

func PgTruetypmod(ctx context.Context, db DB, p0 pgtypes.PgAttribute, p1 pgtypes.PgType) (int, error)

PgTruetypmod calls the stored function 'information_schema._pg_truetypmod(pg_attribute, pg_type) integer' on db.

func SetErrorLogger

func SetErrorLogger(logger interface{})

SetErrorLogger sets the package error logger. Valid logger types:

io.Writer
func(string, ...interface{}) (int, error) // fmt.Printf
func(string, ...interface{}) // log.Printf

func SetLogger

func SetLogger(logger interface{})

SetLogger sets the package logger. Valid logger types:

io.Writer
func(string, ...interface{}) (int, error) // fmt.Printf
func(string, ...interface{}) // log.Printf

Types

type AdministrableRoleAuthorization

type AdministrableRoleAuthorization struct {
	Grantee     sql.NullString `json:"grantee"`      // grantee
	RoleName    sql.NullString `json:"role_name"`    // role_name
	IsGrantable sql.NullString `json:"is_grantable"` // is_grantable
}

AdministrableRoleAuthorization represents a row from 'information_schema.administrable_role_authorizations'.

type ApplicableRole

type ApplicableRole struct {
	Grantee     sql.NullString `json:"grantee"`      // grantee
	RoleName    sql.NullString `json:"role_name"`    // role_name
	IsGrantable sql.NullString `json:"is_grantable"` // is_grantable
}

ApplicableRole represents a row from 'information_schema.applicable_roles'.

type Attribute

type Attribute struct {
	UdtCatalog                  sql.NullString `json:"udt_catalog"`                    // udt_catalog
	UdtSchema                   sql.NullString `json:"udt_schema"`                     // udt_schema
	UdtName                     sql.NullString `json:"udt_name"`                       // udt_name
	AttributeName               sql.NullString `json:"attribute_name"`                 // attribute_name
	OrdinalPosition             sql.NullInt64  `json:"ordinal_position"`               // ordinal_position
	AttributeDefault            sql.NullString `json:"attribute_default"`              // attribute_default
	IsNullable                  sql.NullString `json:"is_nullable"`                    // is_nullable
	DataType                    sql.NullString `json:"data_type"`                      // data_type
	CharacterMaximumLength      sql.NullInt64  `json:"character_maximum_length"`       // character_maximum_length
	CharacterOctetLength        sql.NullInt64  `json:"character_octet_length"`         // character_octet_length
	CharacterSetCatalog         sql.NullString `json:"character_set_catalog"`          // character_set_catalog
	CharacterSetSchema          sql.NullString `json:"character_set_schema"`           // character_set_schema
	CharacterSetName            sql.NullString `json:"character_set_name"`             // character_set_name
	CollationCatalog            sql.NullString `json:"collation_catalog"`              // collation_catalog
	CollationSchema             sql.NullString `json:"collation_schema"`               // collation_schema
	CollationName               sql.NullString `json:"collation_name"`                 // collation_name
	NumericPrecision            sql.NullInt64  `json:"numeric_precision"`              // numeric_precision
	NumericPrecisionRadix       sql.NullInt64  `json:"numeric_precision_radix"`        // numeric_precision_radix
	NumericScale                sql.NullInt64  `json:"numeric_scale"`                  // numeric_scale
	DatetimePrecision           sql.NullInt64  `json:"datetime_precision"`             // datetime_precision
	IntervalType                sql.NullString `json:"interval_type"`                  // interval_type
	IntervalPrecision           sql.NullInt64  `json:"interval_precision"`             // interval_precision
	AttributeUdtCatalog         sql.NullString `json:"attribute_udt_catalog"`          // attribute_udt_catalog
	AttributeUdtSchema          sql.NullString `json:"attribute_udt_schema"`           // attribute_udt_schema
	AttributeUdtName            sql.NullString `json:"attribute_udt_name"`             // attribute_udt_name
	ScopeCatalog                sql.NullString `json:"scope_catalog"`                  // scope_catalog
	ScopeSchema                 sql.NullString `json:"scope_schema"`                   // scope_schema
	ScopeName                   sql.NullString `json:"scope_name"`                     // scope_name
	MaximumCardinality          sql.NullInt64  `json:"maximum_cardinality"`            // maximum_cardinality
	DtdIdentifier               sql.NullString `json:"dtd_identifier"`                 // dtd_identifier
	IsDerivedReferenceAttribute sql.NullString `json:"is_derived_reference_attribute"` // is_derived_reference_attribute
}

Attribute represents a row from 'information_schema.attributes'.

type CharacterSet

type CharacterSet struct {
	CharacterSetCatalog   sql.NullString `json:"character_set_catalog"`   // character_set_catalog
	CharacterSetSchema    sql.NullString `json:"character_set_schema"`    // character_set_schema
	CharacterSetName      sql.NullString `json:"character_set_name"`      // character_set_name
	CharacterRepertoire   sql.NullString `json:"character_repertoire"`    // character_repertoire
	FormOfUse             sql.NullString `json:"form_of_use"`             // form_of_use
	DefaultCollateCatalog sql.NullString `json:"default_collate_catalog"` // default_collate_catalog
	DefaultCollateSchema  sql.NullString `json:"default_collate_schema"`  // default_collate_schema
	DefaultCollateName    sql.NullString `json:"default_collate_name"`    // default_collate_name
}

CharacterSet represents a row from 'information_schema.character_sets'.

type CheckConstraint

type CheckConstraint struct {
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
	CheckClause       sql.NullString `json:"check_clause"`       // check_clause
}

CheckConstraint represents a row from 'information_schema.check_constraints'.

type CheckConstraintRoutineUsage

type CheckConstraintRoutineUsage struct {
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
	SpecificCatalog   sql.NullString `json:"specific_catalog"`   // specific_catalog
	SpecificSchema    sql.NullString `json:"specific_schema"`    // specific_schema
	SpecificName      sql.NullString `json:"specific_name"`      // specific_name
}

CheckConstraintRoutineUsage represents a row from 'information_schema.check_constraint_routine_usage'.

type Collation

type Collation struct {
	CollationCatalog sql.NullString `json:"collation_catalog"` // collation_catalog
	CollationSchema  sql.NullString `json:"collation_schema"`  // collation_schema
	CollationName    sql.NullString `json:"collation_name"`    // collation_name
	PadAttribute     sql.NullString `json:"pad_attribute"`     // pad_attribute
}

Collation represents a row from 'information_schema.collations'.

type CollationCharacterSetApplicability

type CollationCharacterSetApplicability struct {
	CollationCatalog    sql.NullString `json:"collation_catalog"`     // collation_catalog
	CollationSchema     sql.NullString `json:"collation_schema"`      // collation_schema
	CollationName       sql.NullString `json:"collation_name"`        // collation_name
	CharacterSetCatalog sql.NullString `json:"character_set_catalog"` // character_set_catalog
	CharacterSetSchema  sql.NullString `json:"character_set_schema"`  // character_set_schema
	CharacterSetName    sql.NullString `json:"character_set_name"`    // character_set_name
}

CollationCharacterSetApplicability represents a row from 'information_schema.collation_character_set_applicability'.

type Column

type Column struct {
	TableCatalog           sql.NullString `json:"table_catalog"`            // table_catalog
	TableSchema            sql.NullString `json:"table_schema"`             // table_schema
	TableName              sql.NullString `json:"table_name"`               // table_name
	ColumnName             sql.NullString `json:"column_name"`              // column_name
	OrdinalPosition        sql.NullInt64  `json:"ordinal_position"`         // ordinal_position
	ColumnDefault          sql.NullString `json:"column_default"`           // column_default
	IsNullable             sql.NullString `json:"is_nullable"`              // is_nullable
	DataType               sql.NullString `json:"data_type"`                // data_type
	CharacterMaximumLength sql.NullInt64  `json:"character_maximum_length"` // character_maximum_length
	CharacterOctetLength   sql.NullInt64  `json:"character_octet_length"`   // character_octet_length
	NumericPrecision       sql.NullInt64  `json:"numeric_precision"`        // numeric_precision
	NumericPrecisionRadix  sql.NullInt64  `json:"numeric_precision_radix"`  // numeric_precision_radix
	NumericScale           sql.NullInt64  `json:"numeric_scale"`            // numeric_scale
	DatetimePrecision      sql.NullInt64  `json:"datetime_precision"`       // datetime_precision
	IntervalType           sql.NullString `json:"interval_type"`            // interval_type
	IntervalPrecision      sql.NullInt64  `json:"interval_precision"`       // interval_precision
	CharacterSetCatalog    sql.NullString `json:"character_set_catalog"`    // character_set_catalog
	CharacterSetSchema     sql.NullString `json:"character_set_schema"`     // character_set_schema
	CharacterSetName       sql.NullString `json:"character_set_name"`       // character_set_name
	CollationCatalog       sql.NullString `json:"collation_catalog"`        // collation_catalog
	CollationSchema        sql.NullString `json:"collation_schema"`         // collation_schema
	CollationName          sql.NullString `json:"collation_name"`           // collation_name
	DomainCatalog          sql.NullString `json:"domain_catalog"`           // domain_catalog
	DomainSchema           sql.NullString `json:"domain_schema"`            // domain_schema
	DomainName             sql.NullString `json:"domain_name"`              // domain_name
	UdtCatalog             sql.NullString `json:"udt_catalog"`              // udt_catalog
	UdtSchema              sql.NullString `json:"udt_schema"`               // udt_schema
	UdtName                sql.NullString `json:"udt_name"`                 // udt_name
	ScopeCatalog           sql.NullString `json:"scope_catalog"`            // scope_catalog
	ScopeSchema            sql.NullString `json:"scope_schema"`             // scope_schema
	ScopeName              sql.NullString `json:"scope_name"`               // scope_name
	MaximumCardinality     sql.NullInt64  `json:"maximum_cardinality"`      // maximum_cardinality
	DtdIdentifier          sql.NullString `json:"dtd_identifier"`           // dtd_identifier
	IsSelfReferencing      sql.NullString `json:"is_self_referencing"`      // is_self_referencing
	IsIdentity             sql.NullString `json:"is_identity"`              // is_identity
	IdentityGeneration     sql.NullString `json:"identity_generation"`      // identity_generation
	IdentityStart          sql.NullString `json:"identity_start"`           // identity_start
	IdentityIncrement      sql.NullString `json:"identity_increment"`       // identity_increment
	IdentityMaximum        sql.NullString `json:"identity_maximum"`         // identity_maximum
	IdentityMinimum        sql.NullString `json:"identity_minimum"`         // identity_minimum
	IdentityCycle          sql.NullString `json:"identity_cycle"`           // identity_cycle
	IsGenerated            sql.NullString `json:"is_generated"`             // is_generated
	GenerationExpression   sql.NullString `json:"generation_expression"`    // generation_expression
	IsUpdatable            sql.NullString `json:"is_updatable"`             // is_updatable
}

Column represents a row from 'information_schema.columns'.

type ColumnColumnUsage

type ColumnColumnUsage struct {
	TableCatalog    sql.NullString `json:"table_catalog"`    // table_catalog
	TableSchema     sql.NullString `json:"table_schema"`     // table_schema
	TableName       sql.NullString `json:"table_name"`       // table_name
	ColumnName      sql.NullString `json:"column_name"`      // column_name
	DependentColumn sql.NullString `json:"dependent_column"` // dependent_column
}

ColumnColumnUsage represents a row from 'information_schema.column_column_usage'.

type ColumnDomainUsage

type ColumnDomainUsage struct {
	DomainCatalog sql.NullString `json:"domain_catalog"` // domain_catalog
	DomainSchema  sql.NullString `json:"domain_schema"`  // domain_schema
	DomainName    sql.NullString `json:"domain_name"`    // domain_name
	TableCatalog  sql.NullString `json:"table_catalog"`  // table_catalog
	TableSchema   sql.NullString `json:"table_schema"`   // table_schema
	TableName     sql.NullString `json:"table_name"`     // table_name
	ColumnName    sql.NullString `json:"column_name"`    // column_name
}

ColumnDomainUsage represents a row from 'information_schema.column_domain_usage'.

type ColumnOption

type ColumnOption struct {
	TableCatalog sql.NullString `json:"table_catalog"` // table_catalog
	TableSchema  sql.NullString `json:"table_schema"`  // table_schema
	TableName    sql.NullString `json:"table_name"`    // table_name
	ColumnName   sql.NullString `json:"column_name"`   // column_name
	OptionName   sql.NullString `json:"option_name"`   // option_name
	OptionValue  sql.NullString `json:"option_value"`  // option_value
}

ColumnOption represents a row from 'information_schema.column_options'.

type ColumnPrivilege

type ColumnPrivilege struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	TableCatalog  sql.NullString `json:"table_catalog"`  // table_catalog
	TableSchema   sql.NullString `json:"table_schema"`   // table_schema
	TableName     sql.NullString `json:"table_name"`     // table_name
	ColumnName    sql.NullString `json:"column_name"`    // column_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

ColumnPrivilege represents a row from 'information_schema.column_privileges'.

type ColumnUdtUsage

type ColumnUdtUsage struct {
	UdtCatalog   sql.NullString `json:"udt_catalog"`   // udt_catalog
	UdtSchema    sql.NullString `json:"udt_schema"`    // udt_schema
	UdtName      sql.NullString `json:"udt_name"`      // udt_name
	TableCatalog sql.NullString `json:"table_catalog"` // table_catalog
	TableSchema  sql.NullString `json:"table_schema"`  // table_schema
	TableName    sql.NullString `json:"table_name"`    // table_name
	ColumnName   sql.NullString `json:"column_name"`   // column_name
}

ColumnUdtUsage represents a row from 'information_schema.column_udt_usage'.

type ConstraintColumnUsage

type ConstraintColumnUsage struct {
	TableCatalog      sql.NullString `json:"table_catalog"`      // table_catalog
	TableSchema       sql.NullString `json:"table_schema"`       // table_schema
	TableName         sql.NullString `json:"table_name"`         // table_name
	ColumnName        sql.NullString `json:"column_name"`        // column_name
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
}

ConstraintColumnUsage represents a row from 'information_schema.constraint_column_usage'.

type ConstraintTableUsage

type ConstraintTableUsage struct {
	TableCatalog      sql.NullString `json:"table_catalog"`      // table_catalog
	TableSchema       sql.NullString `json:"table_schema"`       // table_schema
	TableName         sql.NullString `json:"table_name"`         // table_name
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
}

ConstraintTableUsage represents a row from 'information_schema.constraint_table_usage'.

type DB

type DB interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

DB is the common interface for database operations that can be used with types from schema 'information_schema'.

This works with both database/sql.DB and database/sql.Tx.

type DataTypePrivilege

type DataTypePrivilege struct {
	ObjectCatalog sql.NullString `json:"object_catalog"` // object_catalog
	ObjectSchema  sql.NullString `json:"object_schema"`  // object_schema
	ObjectName    sql.NullString `json:"object_name"`    // object_name
	ObjectType    sql.NullString `json:"object_type"`    // object_type
	DtdIdentifier sql.NullString `json:"dtd_identifier"` // dtd_identifier
}

DataTypePrivilege represents a row from 'information_schema.data_type_privileges'.

type Domain

type Domain struct {
	DomainCatalog          sql.NullString `json:"domain_catalog"`           // domain_catalog
	DomainSchema           sql.NullString `json:"domain_schema"`            // domain_schema
	DomainName             sql.NullString `json:"domain_name"`              // domain_name
	DataType               sql.NullString `json:"data_type"`                // data_type
	CharacterMaximumLength sql.NullInt64  `json:"character_maximum_length"` // character_maximum_length
	CharacterOctetLength   sql.NullInt64  `json:"character_octet_length"`   // character_octet_length
	CharacterSetCatalog    sql.NullString `json:"character_set_catalog"`    // character_set_catalog
	CharacterSetSchema     sql.NullString `json:"character_set_schema"`     // character_set_schema
	CharacterSetName       sql.NullString `json:"character_set_name"`       // character_set_name
	CollationCatalog       sql.NullString `json:"collation_catalog"`        // collation_catalog
	CollationSchema        sql.NullString `json:"collation_schema"`         // collation_schema
	CollationName          sql.NullString `json:"collation_name"`           // collation_name
	NumericPrecision       sql.NullInt64  `json:"numeric_precision"`        // numeric_precision
	NumericPrecisionRadix  sql.NullInt64  `json:"numeric_precision_radix"`  // numeric_precision_radix
	NumericScale           sql.NullInt64  `json:"numeric_scale"`            // numeric_scale
	DatetimePrecision      sql.NullInt64  `json:"datetime_precision"`       // datetime_precision
	IntervalType           sql.NullString `json:"interval_type"`            // interval_type
	IntervalPrecision      sql.NullInt64  `json:"interval_precision"`       // interval_precision
	DomainDefault          sql.NullString `json:"domain_default"`           // domain_default
	UdtCatalog             sql.NullString `json:"udt_catalog"`              // udt_catalog
	UdtSchema              sql.NullString `json:"udt_schema"`               // udt_schema
	UdtName                sql.NullString `json:"udt_name"`                 // udt_name
	ScopeCatalog           sql.NullString `json:"scope_catalog"`            // scope_catalog
	ScopeSchema            sql.NullString `json:"scope_schema"`             // scope_schema
	ScopeName              sql.NullString `json:"scope_name"`               // scope_name
	MaximumCardinality     sql.NullInt64  `json:"maximum_cardinality"`      // maximum_cardinality
	DtdIdentifier          sql.NullString `json:"dtd_identifier"`           // dtd_identifier
}

Domain represents a row from 'information_schema.domains'.

type DomainConstraint

type DomainConstraint struct {
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
	DomainCatalog     sql.NullString `json:"domain_catalog"`     // domain_catalog
	DomainSchema      sql.NullString `json:"domain_schema"`      // domain_schema
	DomainName        sql.NullString `json:"domain_name"`        // domain_name
	IsDeferrable      sql.NullString `json:"is_deferrable"`      // is_deferrable
	InitiallyDeferred sql.NullString `json:"initially_deferred"` // initially_deferred
}

DomainConstraint represents a row from 'information_schema.domain_constraints'.

type DomainUdtUsage

type DomainUdtUsage struct {
	UdtCatalog    sql.NullString `json:"udt_catalog"`    // udt_catalog
	UdtSchema     sql.NullString `json:"udt_schema"`     // udt_schema
	UdtName       sql.NullString `json:"udt_name"`       // udt_name
	DomainCatalog sql.NullString `json:"domain_catalog"` // domain_catalog
	DomainSchema  sql.NullString `json:"domain_schema"`  // domain_schema
	DomainName    sql.NullString `json:"domain_name"`    // domain_name
}

DomainUdtUsage represents a row from 'information_schema.domain_udt_usage'.

type ElementType

type ElementType struct {
	ObjectCatalog            sql.NullString `json:"object_catalog"`             // object_catalog
	ObjectSchema             sql.NullString `json:"object_schema"`              // object_schema
	ObjectName               sql.NullString `json:"object_name"`                // object_name
	ObjectType               sql.NullString `json:"object_type"`                // object_type
	CollectionTypeIdentifier sql.NullString `json:"collection_type_identifier"` // collection_type_identifier
	DataType                 sql.NullString `json:"data_type"`                  // data_type
	CharacterMaximumLength   sql.NullInt64  `json:"character_maximum_length"`   // character_maximum_length
	CharacterOctetLength     sql.NullInt64  `json:"character_octet_length"`     // character_octet_length
	CharacterSetCatalog      sql.NullString `json:"character_set_catalog"`      // character_set_catalog
	CharacterSetSchema       sql.NullString `json:"character_set_schema"`       // character_set_schema
	CharacterSetName         sql.NullString `json:"character_set_name"`         // character_set_name
	CollationCatalog         sql.NullString `json:"collation_catalog"`          // collation_catalog
	CollationSchema          sql.NullString `json:"collation_schema"`           // collation_schema
	CollationName            sql.NullString `json:"collation_name"`             // collation_name
	NumericPrecision         sql.NullInt64  `json:"numeric_precision"`          // numeric_precision
	NumericPrecisionRadix    sql.NullInt64  `json:"numeric_precision_radix"`    // numeric_precision_radix
	NumericScale             sql.NullInt64  `json:"numeric_scale"`              // numeric_scale
	DatetimePrecision        sql.NullInt64  `json:"datetime_precision"`         // datetime_precision
	IntervalType             sql.NullString `json:"interval_type"`              // interval_type
	IntervalPrecision        sql.NullInt64  `json:"interval_precision"`         // interval_precision
	DomainDefault            sql.NullString `json:"domain_default"`             // domain_default
	UdtCatalog               sql.NullString `json:"udt_catalog"`                // udt_catalog
	UdtSchema                sql.NullString `json:"udt_schema"`                 // udt_schema
	UdtName                  sql.NullString `json:"udt_name"`                   // udt_name
	ScopeCatalog             sql.NullString `json:"scope_catalog"`              // scope_catalog
	ScopeSchema              sql.NullString `json:"scope_schema"`               // scope_schema
	ScopeName                sql.NullString `json:"scope_name"`                 // scope_name
	MaximumCardinality       sql.NullInt64  `json:"maximum_cardinality"`        // maximum_cardinality
	DtdIdentifier            sql.NullString `json:"dtd_identifier"`             // dtd_identifier
}

ElementType represents a row from 'information_schema.element_types'.

type EnabledRole

type EnabledRole struct {
	RoleName sql.NullString `json:"role_name"` // role_name
}

EnabledRole represents a row from 'information_schema.enabled_roles'.

type ErrDecodeFailed

type ErrDecodeFailed struct {
	Err error
}

ErrDecodeFailed is the decode failed error.

func (*ErrDecodeFailed) Error

func (err *ErrDecodeFailed) Error() string

Error satisfies the error interface.

func (*ErrDecodeFailed) Unwrap

func (err *ErrDecodeFailed) Unwrap() error

Unwrap satisfies the unwrap interface.

type ErrInsertFailed

type ErrInsertFailed struct {
	Err error
}

ErrInsertFailed is the insert failed error.

func (*ErrInsertFailed) Error

func (err *ErrInsertFailed) Error() string

Error satisfies the error interface.

func (*ErrInsertFailed) Unwrap

func (err *ErrInsertFailed) Unwrap() error

Unwrap satisfies the unwrap interface.

type ErrUpdateFailed

type ErrUpdateFailed struct {
	Err error
}

ErrUpdateFailed is the update failed error.

func (*ErrUpdateFailed) Error

func (err *ErrUpdateFailed) Error() string

Error satisfies the error interface.

func (*ErrUpdateFailed) Unwrap

func (err *ErrUpdateFailed) Unwrap() error

Unwrap satisfies the unwrap interface.

type ErrUpsertFailed

type ErrUpsertFailed struct {
	Err error
}

ErrUpsertFailed is the upsert failed error.

func (*ErrUpsertFailed) Error

func (err *ErrUpsertFailed) Error() string

Error satisfies the error interface.

func (*ErrUpsertFailed) Unwrap

func (err *ErrUpsertFailed) Unwrap() error

Unwrap satisfies the unwrap interface.

type Error

type Error string

Error is an error.

const (
	// ErrAlreadyExists is the already exists error.
	ErrAlreadyExists Error = "already exists"
	// ErrDoesNotExist is the does not exist error.
	ErrDoesNotExist Error = "does not exist"
	// ErrMarkedForDeletion is the marked for deletion error.
	ErrMarkedForDeletion Error = "marked for deletion"
)

Error values.

const ErrInvalidStringSlice Error = "invalid StringSlice"

ErrInvalidStringSlice is the invalid StringSlice error.

func (Error) Error

func (err Error) Error() string

Error satisfies the error interface.

type ForeignDataWrapper

type ForeignDataWrapper struct {
	ForeignDataWrapperCatalog  sql.NullString `json:"foreign_data_wrapper_catalog"`  // foreign_data_wrapper_catalog
	ForeignDataWrapperName     sql.NullString `json:"foreign_data_wrapper_name"`     // foreign_data_wrapper_name
	AuthorizationIdentifier    sql.NullString `json:"authorization_identifier"`      // authorization_identifier
	LibraryName                sql.NullString `json:"library_name"`                  // library_name
	ForeignDataWrapperLanguage sql.NullString `json:"foreign_data_wrapper_language"` // foreign_data_wrapper_language
}

ForeignDataWrapper represents a row from 'information_schema.foreign_data_wrappers'.

type ForeignDataWrapperOption

type ForeignDataWrapperOption struct {
	ForeignDataWrapperCatalog sql.NullString `json:"foreign_data_wrapper_catalog"` // foreign_data_wrapper_catalog
	ForeignDataWrapperName    sql.NullString `json:"foreign_data_wrapper_name"`    // foreign_data_wrapper_name
	OptionName                sql.NullString `json:"option_name"`                  // option_name
	OptionValue               sql.NullString `json:"option_value"`                 // option_value
}

ForeignDataWrapperOption represents a row from 'information_schema.foreign_data_wrapper_options'.

type ForeignServer

type ForeignServer struct {
	ForeignServerCatalog      sql.NullString `json:"foreign_server_catalog"`       // foreign_server_catalog
	ForeignServerName         sql.NullString `json:"foreign_server_name"`          // foreign_server_name
	ForeignDataWrapperCatalog sql.NullString `json:"foreign_data_wrapper_catalog"` // foreign_data_wrapper_catalog
	ForeignDataWrapperName    sql.NullString `json:"foreign_data_wrapper_name"`    // foreign_data_wrapper_name
	ForeignServerType         sql.NullString `json:"foreign_server_type"`          // foreign_server_type
	ForeignServerVersion      sql.NullString `json:"foreign_server_version"`       // foreign_server_version
	AuthorizationIdentifier   sql.NullString `json:"authorization_identifier"`     // authorization_identifier
}

ForeignServer represents a row from 'information_schema.foreign_servers'.

type ForeignServerOption

type ForeignServerOption struct {
	ForeignServerCatalog sql.NullString `json:"foreign_server_catalog"` // foreign_server_catalog
	ForeignServerName    sql.NullString `json:"foreign_server_name"`    // foreign_server_name
	OptionName           sql.NullString `json:"option_name"`            // option_name
	OptionValue          sql.NullString `json:"option_value"`           // option_value
}

ForeignServerOption represents a row from 'information_schema.foreign_server_options'.

type ForeignTable

type ForeignTable struct {
	ForeignTableCatalog  sql.NullString `json:"foreign_table_catalog"`  // foreign_table_catalog
	ForeignTableSchema   sql.NullString `json:"foreign_table_schema"`   // foreign_table_schema
	ForeignTableName     sql.NullString `json:"foreign_table_name"`     // foreign_table_name
	ForeignServerCatalog sql.NullString `json:"foreign_server_catalog"` // foreign_server_catalog
	ForeignServerName    sql.NullString `json:"foreign_server_name"`    // foreign_server_name
}

ForeignTable represents a row from 'information_schema.foreign_tables'.

type ForeignTableOption

type ForeignTableOption struct {
	ForeignTableCatalog sql.NullString `json:"foreign_table_catalog"` // foreign_table_catalog
	ForeignTableSchema  sql.NullString `json:"foreign_table_schema"`  // foreign_table_schema
	ForeignTableName    sql.NullString `json:"foreign_table_name"`    // foreign_table_name
	OptionName          sql.NullString `json:"option_name"`           // option_name
	OptionValue         sql.NullString `json:"option_value"`          // option_value
}

ForeignTableOption represents a row from 'information_schema.foreign_table_options'.

type InformationSchemaCatalogName

type InformationSchemaCatalogName struct {
	CatalogName sql.NullString `json:"catalog_name"` // catalog_name
}

InformationSchemaCatalogName represents a row from 'information_schema.information_schema_catalog_name'.

type KeyColumnUsage

type KeyColumnUsage struct {
	ConstraintCatalog          sql.NullString `json:"constraint_catalog"`            // constraint_catalog
	ConstraintSchema           sql.NullString `json:"constraint_schema"`             // constraint_schema
	ConstraintName             sql.NullString `json:"constraint_name"`               // constraint_name
	TableCatalog               sql.NullString `json:"table_catalog"`                 // table_catalog
	TableSchema                sql.NullString `json:"table_schema"`                  // table_schema
	TableName                  sql.NullString `json:"table_name"`                    // table_name
	ColumnName                 sql.NullString `json:"column_name"`                   // column_name
	OrdinalPosition            sql.NullInt64  `json:"ordinal_position"`              // ordinal_position
	PositionInUniqueConstraint sql.NullInt64  `json:"position_in_unique_constraint"` // position_in_unique_constraint
}

KeyColumnUsage represents a row from 'information_schema.key_column_usage'.

type Parameter

type Parameter struct {
	SpecificCatalog        sql.NullString `json:"specific_catalog"`         // specific_catalog
	SpecificSchema         sql.NullString `json:"specific_schema"`          // specific_schema
	SpecificName           sql.NullString `json:"specific_name"`            // specific_name
	OrdinalPosition        sql.NullInt64  `json:"ordinal_position"`         // ordinal_position
	ParameterMode          sql.NullString `json:"parameter_mode"`           // parameter_mode
	IsResult               sql.NullString `json:"is_result"`                // is_result
	AsLocator              sql.NullString `json:"as_locator"`               // as_locator
	ParameterName          sql.NullString `json:"parameter_name"`           // parameter_name
	DataType               sql.NullString `json:"data_type"`                // data_type
	CharacterMaximumLength sql.NullInt64  `json:"character_maximum_length"` // character_maximum_length
	CharacterOctetLength   sql.NullInt64  `json:"character_octet_length"`   // character_octet_length
	CharacterSetCatalog    sql.NullString `json:"character_set_catalog"`    // character_set_catalog
	CharacterSetSchema     sql.NullString `json:"character_set_schema"`     // character_set_schema
	CharacterSetName       sql.NullString `json:"character_set_name"`       // character_set_name
	CollationCatalog       sql.NullString `json:"collation_catalog"`        // collation_catalog
	CollationSchema        sql.NullString `json:"collation_schema"`         // collation_schema
	CollationName          sql.NullString `json:"collation_name"`           // collation_name
	NumericPrecision       sql.NullInt64  `json:"numeric_precision"`        // numeric_precision
	NumericPrecisionRadix  sql.NullInt64  `json:"numeric_precision_radix"`  // numeric_precision_radix
	NumericScale           sql.NullInt64  `json:"numeric_scale"`            // numeric_scale
	DatetimePrecision      sql.NullInt64  `json:"datetime_precision"`       // datetime_precision
	IntervalType           sql.NullString `json:"interval_type"`            // interval_type
	IntervalPrecision      sql.NullInt64  `json:"interval_precision"`       // interval_precision
	UdtCatalog             sql.NullString `json:"udt_catalog"`              // udt_catalog
	UdtSchema              sql.NullString `json:"udt_schema"`               // udt_schema
	UdtName                sql.NullString `json:"udt_name"`                 // udt_name
	ScopeCatalog           sql.NullString `json:"scope_catalog"`            // scope_catalog
	ScopeSchema            sql.NullString `json:"scope_schema"`             // scope_schema
	ScopeName              sql.NullString `json:"scope_name"`               // scope_name
	MaximumCardinality     sql.NullInt64  `json:"maximum_cardinality"`      // maximum_cardinality
	DtdIdentifier          sql.NullString `json:"dtd_identifier"`           // dtd_identifier
	ParameterDefault       sql.NullString `json:"parameter_default"`        // parameter_default
}

Parameter represents a row from 'information_schema.parameters'.

type PgForeignDataWrapper

type PgForeignDataWrapper struct {
	Oid                        pgtypes.NullOid  `json:"oid"`                           // oid
	Fdwowner                   pgtypes.NullOid  `json:"fdwowner"`                      // fdwowner
	Fdwoptions                 []sql.NullString `json:"fdwoptions"`                    // fdwoptions
	ForeignDataWrapperCatalog  sql.NullString   `json:"foreign_data_wrapper_catalog"`  // foreign_data_wrapper_catalog
	ForeignDataWrapperName     sql.NullString   `json:"foreign_data_wrapper_name"`     // foreign_data_wrapper_name
	AuthorizationIdentifier    sql.NullString   `json:"authorization_identifier"`      // authorization_identifier
	ForeignDataWrapperLanguage sql.NullString   `json:"foreign_data_wrapper_language"` // foreign_data_wrapper_language
}

PgForeignDataWrapper represents a row from 'information_schema._pg_foreign_data_wrappers'.

type PgForeignServer

type PgForeignServer struct {
	Oid                       pgtypes.NullOid  `json:"oid"`                          // oid
	Srvoptions                []sql.NullString `json:"srvoptions"`                   // srvoptions
	ForeignServerCatalog      sql.NullString   `json:"foreign_server_catalog"`       // foreign_server_catalog
	ForeignServerName         sql.NullString   `json:"foreign_server_name"`          // foreign_server_name
	ForeignDataWrapperCatalog sql.NullString   `json:"foreign_data_wrapper_catalog"` // foreign_data_wrapper_catalog
	ForeignDataWrapperName    sql.NullString   `json:"foreign_data_wrapper_name"`    // foreign_data_wrapper_name
	ForeignServerType         sql.NullString   `json:"foreign_server_type"`          // foreign_server_type
	ForeignServerVersion      sql.NullString   `json:"foreign_server_version"`       // foreign_server_version
	AuthorizationIdentifier   sql.NullString   `json:"authorization_identifier"`     // authorization_identifier
}

PgForeignServer represents a row from 'information_schema._pg_foreign_servers'.

type PgForeignTable

type PgForeignTable struct {
	ForeignTableCatalog     sql.NullString   `json:"foreign_table_catalog"`    // foreign_table_catalog
	ForeignTableSchema      sql.NullString   `json:"foreign_table_schema"`     // foreign_table_schema
	ForeignTableName        sql.NullString   `json:"foreign_table_name"`       // foreign_table_name
	Ftoptions               []sql.NullString `json:"ftoptions"`                // ftoptions
	ForeignServerCatalog    sql.NullString   `json:"foreign_server_catalog"`   // foreign_server_catalog
	ForeignServerName       sql.NullString   `json:"foreign_server_name"`      // foreign_server_name
	AuthorizationIdentifier sql.NullString   `json:"authorization_identifier"` // authorization_identifier
}

PgForeignTable represents a row from 'information_schema._pg_foreign_tables'.

type PgForeignTableColumn

type PgForeignTableColumn struct {
	Nspname       sql.NullString   `json:"nspname"`       // nspname
	Relname       sql.NullString   `json:"relname"`       // relname
	Attname       sql.NullString   `json:"attname"`       // attname
	Attfdwoptions []sql.NullString `json:"attfdwoptions"` // attfdwoptions
}

PgForeignTableColumn represents a row from 'information_schema._pg_foreign_table_columns'.

type PgUserMapping

type PgUserMapping struct {
	Oid                     pgtypes.NullOid  `json:"oid"`                      // oid
	Umoptions               []sql.NullString `json:"umoptions"`                // umoptions
	Umuser                  pgtypes.NullOid  `json:"umuser"`                   // umuser
	AuthorizationIdentifier sql.NullString   `json:"authorization_identifier"` // authorization_identifier
	ForeignServerCatalog    sql.NullString   `json:"foreign_server_catalog"`   // foreign_server_catalog
	ForeignServerName       sql.NullString   `json:"foreign_server_name"`      // foreign_server_name
	Srvowner                sql.NullString   `json:"srvowner"`                 // srvowner
}

PgUserMapping represents a row from 'information_schema._pg_user_mappings'.

type ReferentialConstraint

type ReferentialConstraint struct {
	ConstraintCatalog       sql.NullString `json:"constraint_catalog"`        // constraint_catalog
	ConstraintSchema        sql.NullString `json:"constraint_schema"`         // constraint_schema
	ConstraintName          sql.NullString `json:"constraint_name"`           // constraint_name
	UniqueConstraintCatalog sql.NullString `json:"unique_constraint_catalog"` // unique_constraint_catalog
	UniqueConstraintSchema  sql.NullString `json:"unique_constraint_schema"`  // unique_constraint_schema
	UniqueConstraintName    sql.NullString `json:"unique_constraint_name"`    // unique_constraint_name
	MatchOption             sql.NullString `json:"match_option"`              // match_option
	UpdateRule              sql.NullString `json:"update_rule"`               // update_rule
	DeleteRule              sql.NullString `json:"delete_rule"`               // delete_rule
}

ReferentialConstraint represents a row from 'information_schema.referential_constraints'.

type RoleColumnGrant

type RoleColumnGrant struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	TableCatalog  sql.NullString `json:"table_catalog"`  // table_catalog
	TableSchema   sql.NullString `json:"table_schema"`   // table_schema
	TableName     sql.NullString `json:"table_name"`     // table_name
	ColumnName    sql.NullString `json:"column_name"`    // column_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

RoleColumnGrant represents a row from 'information_schema.role_column_grants'.

type RoleRoutineGrant

type RoleRoutineGrant struct {
	Grantor         sql.NullString `json:"grantor"`          // grantor
	Grantee         sql.NullString `json:"grantee"`          // grantee
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
	PrivilegeType   sql.NullString `json:"privilege_type"`   // privilege_type
	IsGrantable     sql.NullString `json:"is_grantable"`     // is_grantable
}

RoleRoutineGrant represents a row from 'information_schema.role_routine_grants'.

type RoleTableGrant

type RoleTableGrant struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	TableCatalog  sql.NullString `json:"table_catalog"`  // table_catalog
	TableSchema   sql.NullString `json:"table_schema"`   // table_schema
	TableName     sql.NullString `json:"table_name"`     // table_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
	WithHierarchy sql.NullString `json:"with_hierarchy"` // with_hierarchy
}

RoleTableGrant represents a row from 'information_schema.role_table_grants'.

type RoleUdtGrant

type RoleUdtGrant struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	UdtCatalog    sql.NullString `json:"udt_catalog"`    // udt_catalog
	UdtSchema     sql.NullString `json:"udt_schema"`     // udt_schema
	UdtName       sql.NullString `json:"udt_name"`       // udt_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

RoleUdtGrant represents a row from 'information_schema.role_udt_grants'.

type RoleUsageGrant

type RoleUsageGrant struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	ObjectCatalog sql.NullString `json:"object_catalog"` // object_catalog
	ObjectSchema  sql.NullString `json:"object_schema"`  // object_schema
	ObjectName    sql.NullString `json:"object_name"`    // object_name
	ObjectType    sql.NullString `json:"object_type"`    // object_type
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

RoleUsageGrant represents a row from 'information_schema.role_usage_grants'.

type Routine

type Routine struct {
	SpecificCatalog                 sql.NullString `json:"specific_catalog"`                    // specific_catalog
	SpecificSchema                  sql.NullString `json:"specific_schema"`                     // specific_schema
	SpecificName                    sql.NullString `json:"specific_name"`                       // specific_name
	RoutineCatalog                  sql.NullString `json:"routine_catalog"`                     // routine_catalog
	RoutineSchema                   sql.NullString `json:"routine_schema"`                      // routine_schema
	RoutineName                     sql.NullString `json:"routine_name"`                        // routine_name
	RoutineType                     sql.NullString `json:"routine_type"`                        // routine_type
	ModuleCatalog                   sql.NullString `json:"module_catalog"`                      // module_catalog
	ModuleSchema                    sql.NullString `json:"module_schema"`                       // module_schema
	ModuleName                      sql.NullString `json:"module_name"`                         // module_name
	UdtCatalog                      sql.NullString `json:"udt_catalog"`                         // udt_catalog
	UdtSchema                       sql.NullString `json:"udt_schema"`                          // udt_schema
	UdtName                         sql.NullString `json:"udt_name"`                            // udt_name
	DataType                        sql.NullString `json:"data_type"`                           // data_type
	CharacterMaximumLength          sql.NullInt64  `json:"character_maximum_length"`            // character_maximum_length
	CharacterOctetLength            sql.NullInt64  `json:"character_octet_length"`              // character_octet_length
	CharacterSetCatalog             sql.NullString `json:"character_set_catalog"`               // character_set_catalog
	CharacterSetSchema              sql.NullString `json:"character_set_schema"`                // character_set_schema
	CharacterSetName                sql.NullString `json:"character_set_name"`                  // character_set_name
	CollationCatalog                sql.NullString `json:"collation_catalog"`                   // collation_catalog
	CollationSchema                 sql.NullString `json:"collation_schema"`                    // collation_schema
	CollationName                   sql.NullString `json:"collation_name"`                      // collation_name
	NumericPrecision                sql.NullInt64  `json:"numeric_precision"`                   // numeric_precision
	NumericPrecisionRadix           sql.NullInt64  `json:"numeric_precision_radix"`             // numeric_precision_radix
	NumericScale                    sql.NullInt64  `json:"numeric_scale"`                       // numeric_scale
	DatetimePrecision               sql.NullInt64  `json:"datetime_precision"`                  // datetime_precision
	IntervalType                    sql.NullString `json:"interval_type"`                       // interval_type
	IntervalPrecision               sql.NullInt64  `json:"interval_precision"`                  // interval_precision
	TypeUdtCatalog                  sql.NullString `json:"type_udt_catalog"`                    // type_udt_catalog
	TypeUdtSchema                   sql.NullString `json:"type_udt_schema"`                     // type_udt_schema
	TypeUdtName                     sql.NullString `json:"type_udt_name"`                       // type_udt_name
	ScopeCatalog                    sql.NullString `json:"scope_catalog"`                       // scope_catalog
	ScopeSchema                     sql.NullString `json:"scope_schema"`                        // scope_schema
	ScopeName                       sql.NullString `json:"scope_name"`                          // scope_name
	MaximumCardinality              sql.NullInt64  `json:"maximum_cardinality"`                 // maximum_cardinality
	DtdIdentifier                   sql.NullString `json:"dtd_identifier"`                      // dtd_identifier
	RoutineBody                     sql.NullString `json:"routine_body"`                        // routine_body
	RoutineDefinition               sql.NullString `json:"routine_definition"`                  // routine_definition
	ExternalName                    sql.NullString `json:"external_name"`                       // external_name
	ExternalLanguage                sql.NullString `json:"external_language"`                   // external_language
	ParameterStyle                  sql.NullString `json:"parameter_style"`                     // parameter_style
	IsDeterministic                 sql.NullString `json:"is_deterministic"`                    // is_deterministic
	SQLDataAccess                   sql.NullString `json:"sql_data_access"`                     // sql_data_access
	IsNullCall                      sql.NullString `json:"is_null_call"`                        // is_null_call
	SQLPath                         sql.NullString `json:"sql_path"`                            // sql_path
	SchemaLevelRoutine              sql.NullString `json:"schema_level_routine"`                // schema_level_routine
	MaxDynamicResultSets            sql.NullInt64  `json:"max_dynamic_result_sets"`             // max_dynamic_result_sets
	IsUserDefinedCast               sql.NullString `json:"is_user_defined_cast"`                // is_user_defined_cast
	IsImplicitlyInvocable           sql.NullString `json:"is_implicitly_invocable"`             // is_implicitly_invocable
	SecurityType                    sql.NullString `json:"security_type"`                       // security_type
	ToSQLSpecificCatalog            sql.NullString `json:"to_sql_specific_catalog"`             // to_sql_specific_catalog
	ToSQLSpecificSchema             sql.NullString `json:"to_sql_specific_schema"`              // to_sql_specific_schema
	ToSQLSpecificName               sql.NullString `json:"to_sql_specific_name"`                // to_sql_specific_name
	AsLocator                       sql.NullString `json:"as_locator"`                          // as_locator
	Created                         sql.NullTime   `json:"created"`                             // created
	LastAltered                     sql.NullTime   `json:"last_altered"`                        // last_altered
	NewSavepointLevel               sql.NullString `json:"new_savepoint_level"`                 // new_savepoint_level
	IsUdtDependent                  sql.NullString `json:"is_udt_dependent"`                    // is_udt_dependent
	ResultCastFromDataType          sql.NullString `json:"result_cast_from_data_type"`          // result_cast_from_data_type
	ResultCastAsLocator             sql.NullString `json:"result_cast_as_locator"`              // result_cast_as_locator
	ResultCastCharMaxLength         sql.NullInt64  `json:"result_cast_char_max_length"`         // result_cast_char_max_length
	ResultCastCharOctetLength       sql.NullInt64  `json:"result_cast_char_octet_length"`       // result_cast_char_octet_length
	ResultCastCharSetCatalog        sql.NullString `json:"result_cast_char_set_catalog"`        // result_cast_char_set_catalog
	ResultCastCharSetSchema         sql.NullString `json:"result_cast_char_set_schema"`         // result_cast_char_set_schema
	ResultCastCharSetName           sql.NullString `json:"result_cast_char_set_name"`           // result_cast_char_set_name
	ResultCastCollationCatalog      sql.NullString `json:"result_cast_collation_catalog"`       // result_cast_collation_catalog
	ResultCastCollationSchema       sql.NullString `json:"result_cast_collation_schema"`        // result_cast_collation_schema
	ResultCastCollationName         sql.NullString `json:"result_cast_collation_name"`          // result_cast_collation_name
	ResultCastNumericPrecision      sql.NullInt64  `json:"result_cast_numeric_precision"`       // result_cast_numeric_precision
	ResultCastNumericPrecisionRadix sql.NullInt64  `json:"result_cast_numeric_precision_radix"` // result_cast_numeric_precision_radix
	ResultCastNumericScale          sql.NullInt64  `json:"result_cast_numeric_scale"`           // result_cast_numeric_scale
	ResultCastDatetimePrecision     sql.NullInt64  `json:"result_cast_datetime_precision"`      // result_cast_datetime_precision
	ResultCastIntervalType          sql.NullString `json:"result_cast_interval_type"`           // result_cast_interval_type
	ResultCastIntervalPrecision     sql.NullInt64  `json:"result_cast_interval_precision"`      // result_cast_interval_precision
	ResultCastTypeUdtCatalog        sql.NullString `json:"result_cast_type_udt_catalog"`        // result_cast_type_udt_catalog
	ResultCastTypeUdtSchema         sql.NullString `json:"result_cast_type_udt_schema"`         // result_cast_type_udt_schema
	ResultCastTypeUdtName           sql.NullString `json:"result_cast_type_udt_name"`           // result_cast_type_udt_name
	ResultCastScopeCatalog          sql.NullString `json:"result_cast_scope_catalog"`           // result_cast_scope_catalog
	ResultCastScopeSchema           sql.NullString `json:"result_cast_scope_schema"`            // result_cast_scope_schema
	ResultCastScopeName             sql.NullString `json:"result_cast_scope_name"`              // result_cast_scope_name
	ResultCastMaximumCardinality    sql.NullInt64  `json:"result_cast_maximum_cardinality"`     // result_cast_maximum_cardinality
	ResultCastDtdIdentifier         sql.NullString `json:"result_cast_dtd_identifier"`          // result_cast_dtd_identifier
}

Routine represents a row from 'information_schema.routines'.

type RoutineColumnUsage

type RoutineColumnUsage struct {
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
	TableCatalog    sql.NullString `json:"table_catalog"`    // table_catalog
	TableSchema     sql.NullString `json:"table_schema"`     // table_schema
	TableName       sql.NullString `json:"table_name"`       // table_name
	ColumnName      sql.NullString `json:"column_name"`      // column_name
}

RoutineColumnUsage represents a row from 'information_schema.routine_column_usage'.

type RoutinePrivilege

type RoutinePrivilege struct {
	Grantor         sql.NullString `json:"grantor"`          // grantor
	Grantee         sql.NullString `json:"grantee"`          // grantee
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
	PrivilegeType   sql.NullString `json:"privilege_type"`   // privilege_type
	IsGrantable     sql.NullString `json:"is_grantable"`     // is_grantable
}

RoutinePrivilege represents a row from 'information_schema.routine_privileges'.

type RoutineRoutineUsage

type RoutineRoutineUsage struct {
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
}

RoutineRoutineUsage represents a row from 'information_schema.routine_routine_usage'.

type RoutineSequenceUsage

type RoutineSequenceUsage struct {
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
	SequenceCatalog sql.NullString `json:"sequence_catalog"` // sequence_catalog
	SequenceSchema  sql.NullString `json:"sequence_schema"`  // sequence_schema
	SequenceName    sql.NullString `json:"sequence_name"`    // sequence_name
}

RoutineSequenceUsage represents a row from 'information_schema.routine_sequence_usage'.

type RoutineTableUsage

type RoutineTableUsage struct {
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	RoutineCatalog  sql.NullString `json:"routine_catalog"`  // routine_catalog
	RoutineSchema   sql.NullString `json:"routine_schema"`   // routine_schema
	RoutineName     sql.NullString `json:"routine_name"`     // routine_name
	TableCatalog    sql.NullString `json:"table_catalog"`    // table_catalog
	TableSchema     sql.NullString `json:"table_schema"`     // table_schema
	TableName       sql.NullString `json:"table_name"`       // table_name
}

RoutineTableUsage represents a row from 'information_schema.routine_table_usage'.

type SQLFeature

type SQLFeature struct {
	Tableoid       pgtypes.Oid    `json:"tableoid"`         // tableoid
	Cmax           pgtypes.Cid    `json:"cmax"`             // cmax
	Xmax           pgtypes.Xid    `json:"xmax"`             // xmax
	Cmin           pgtypes.Cid    `json:"cmin"`             // cmin
	Xmin           pgtypes.Xid    `json:"xmin"`             // xmin
	Ctid           pgtypes.Tid    `json:"ctid"`             // ctid
	FeatureID      sql.NullString `json:"feature_id"`       // feature_id
	FeatureName    sql.NullString `json:"feature_name"`     // feature_name
	SubFeatureID   sql.NullString `json:"sub_feature_id"`   // sub_feature_id
	SubFeatureName sql.NullString `json:"sub_feature_name"` // sub_feature_name
	IsSupported    sql.NullString `json:"is_supported"`     // is_supported
	IsVerifiedBy   sql.NullString `json:"is_verified_by"`   // is_verified_by
	Comments       sql.NullString `json:"comments"`         // comments
}

SQLFeature represents a row from 'information_schema.sql_features'.

type SQLImplementationInfo

type SQLImplementationInfo struct {
	Tableoid               pgtypes.Oid    `json:"tableoid"`                 // tableoid
	Cmax                   pgtypes.Cid    `json:"cmax"`                     // cmax
	Xmax                   pgtypes.Xid    `json:"xmax"`                     // xmax
	Cmin                   pgtypes.Cid    `json:"cmin"`                     // cmin
	Xmin                   pgtypes.Xid    `json:"xmin"`                     // xmin
	Ctid                   pgtypes.Tid    `json:"ctid"`                     // ctid
	ImplementationInfoID   sql.NullString `json:"implementation_info_id"`   // implementation_info_id
	ImplementationInfoName sql.NullString `json:"implementation_info_name"` // implementation_info_name
	IntegerValue           sql.NullInt64  `json:"integer_value"`            // integer_value
	CharacterValue         sql.NullString `json:"character_value"`          // character_value
	Comments               sql.NullString `json:"comments"`                 // comments
}

SQLImplementationInfo represents a row from 'information_schema.sql_implementation_info'.

type SQLPart

type SQLPart struct {
	Tableoid     pgtypes.Oid    `json:"tableoid"`       // tableoid
	Cmax         pgtypes.Cid    `json:"cmax"`           // cmax
	Xmax         pgtypes.Xid    `json:"xmax"`           // xmax
	Cmin         pgtypes.Cid    `json:"cmin"`           // cmin
	Xmin         pgtypes.Xid    `json:"xmin"`           // xmin
	Ctid         pgtypes.Tid    `json:"ctid"`           // ctid
	FeatureID    sql.NullString `json:"feature_id"`     // feature_id
	FeatureName  sql.NullString `json:"feature_name"`   // feature_name
	IsSupported  sql.NullString `json:"is_supported"`   // is_supported
	IsVerifiedBy sql.NullString `json:"is_verified_by"` // is_verified_by
	Comments     sql.NullString `json:"comments"`       // comments
}

SQLPart represents a row from 'information_schema.sql_parts'.

type SQLSizing

type SQLSizing struct {
	Tableoid       pgtypes.Oid    `json:"tableoid"`        // tableoid
	Cmax           pgtypes.Cid    `json:"cmax"`            // cmax
	Xmax           pgtypes.Xid    `json:"xmax"`            // xmax
	Cmin           pgtypes.Cid    `json:"cmin"`            // cmin
	Xmin           pgtypes.Xid    `json:"xmin"`            // xmin
	Ctid           pgtypes.Tid    `json:"ctid"`            // ctid
	SizingID       sql.NullInt64  `json:"sizing_id"`       // sizing_id
	SizingName     sql.NullString `json:"sizing_name"`     // sizing_name
	SupportedValue sql.NullInt64  `json:"supported_value"` // supported_value
	Comments       sql.NullString `json:"comments"`        // comments
}

SQLSizing represents a row from 'information_schema.sql_sizing'.

type Schematum

type Schematum struct {
	CatalogName                sql.NullString `json:"catalog_name"`                  // catalog_name
	SchemaName                 sql.NullString `json:"schema_name"`                   // schema_name
	SchemaOwner                sql.NullString `json:"schema_owner"`                  // schema_owner
	DefaultCharacterSetCatalog sql.NullString `json:"default_character_set_catalog"` // default_character_set_catalog
	DefaultCharacterSetSchema  sql.NullString `json:"default_character_set_schema"`  // default_character_set_schema
	DefaultCharacterSetName    sql.NullString `json:"default_character_set_name"`    // default_character_set_name
	SQLPath                    sql.NullString `json:"sql_path"`                      // sql_path
}

Schematum represents a row from 'information_schema.schemata'.

type Sequence

type Sequence struct {
	SequenceCatalog       sql.NullString `json:"sequence_catalog"`        // sequence_catalog
	SequenceSchema        sql.NullString `json:"sequence_schema"`         // sequence_schema
	SequenceName          sql.NullString `json:"sequence_name"`           // sequence_name
	DataType              sql.NullString `json:"data_type"`               // data_type
	NumericPrecision      sql.NullInt64  `json:"numeric_precision"`       // numeric_precision
	NumericPrecisionRadix sql.NullInt64  `json:"numeric_precision_radix"` // numeric_precision_radix
	NumericScale          sql.NullInt64  `json:"numeric_scale"`           // numeric_scale
	StartValue            sql.NullString `json:"start_value"`             // start_value
	MinimumValue          sql.NullString `json:"minimum_value"`           // minimum_value
	MaximumValue          sql.NullString `json:"maximum_value"`           // maximum_value
	Increment             sql.NullString `json:"increment"`               // increment
	CycleOption           sql.NullString `json:"cycle_option"`            // cycle_option
}

Sequence represents a row from 'information_schema.sequences'.

type StringSlice

type StringSlice []string

StringSlice is a slice of strings.

func (*StringSlice) Scan

func (ss *StringSlice) Scan(v interface{}) error

Scan satisfies the sql.Scanner interface for StringSlice.

func (StringSlice) Value

func (ss StringSlice) Value() (driver.Value, error)

Value satisfies the sql/driver.Valuer interface.

type Table

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

Table represents a row from 'information_schema.tables'.

type TableConstraint

type TableConstraint struct {
	ConstraintCatalog sql.NullString `json:"constraint_catalog"` // constraint_catalog
	ConstraintSchema  sql.NullString `json:"constraint_schema"`  // constraint_schema
	ConstraintName    sql.NullString `json:"constraint_name"`    // constraint_name
	TableCatalog      sql.NullString `json:"table_catalog"`      // table_catalog
	TableSchema       sql.NullString `json:"table_schema"`       // table_schema
	TableName         sql.NullString `json:"table_name"`         // table_name
	ConstraintType    sql.NullString `json:"constraint_type"`    // constraint_type
	IsDeferrable      sql.NullString `json:"is_deferrable"`      // is_deferrable
	InitiallyDeferred sql.NullString `json:"initially_deferred"` // initially_deferred
	Enforced          sql.NullString `json:"enforced"`           // enforced
}

TableConstraint represents a row from 'information_schema.table_constraints'.

type TablePrivilege

type TablePrivilege struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	TableCatalog  sql.NullString `json:"table_catalog"`  // table_catalog
	TableSchema   sql.NullString `json:"table_schema"`   // table_schema
	TableName     sql.NullString `json:"table_name"`     // table_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
	WithHierarchy sql.NullString `json:"with_hierarchy"` // with_hierarchy
}

TablePrivilege represents a row from 'information_schema.table_privileges'.

type Transform

type Transform struct {
	UdtCatalog      sql.NullString `json:"udt_catalog"`      // udt_catalog
	UdtSchema       sql.NullString `json:"udt_schema"`       // udt_schema
	UdtName         sql.NullString `json:"udt_name"`         // udt_name
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
	GroupName       sql.NullString `json:"group_name"`       // group_name
	TransformType   sql.NullString `json:"transform_type"`   // transform_type
}

Transform represents a row from 'information_schema.transforms'.

type Trigger

type Trigger struct {
	TriggerCatalog          sql.NullString `json:"trigger_catalog"`            // trigger_catalog
	TriggerSchema           sql.NullString `json:"trigger_schema"`             // trigger_schema
	TriggerName             sql.NullString `json:"trigger_name"`               // trigger_name
	EventManipulation       sql.NullString `json:"event_manipulation"`         // event_manipulation
	EventObjectCatalog      sql.NullString `json:"event_object_catalog"`       // event_object_catalog
	EventObjectSchema       sql.NullString `json:"event_object_schema"`        // event_object_schema
	EventObjectTable        sql.NullString `json:"event_object_table"`         // event_object_table
	ActionOrder             sql.NullInt64  `json:"action_order"`               // action_order
	ActionCondition         sql.NullString `json:"action_condition"`           // action_condition
	ActionStatement         sql.NullString `json:"action_statement"`           // action_statement
	ActionOrientation       sql.NullString `json:"action_orientation"`         // action_orientation
	ActionTiming            sql.NullString `json:"action_timing"`              // action_timing
	ActionReferenceOldTable sql.NullString `json:"action_reference_old_table"` // action_reference_old_table
	ActionReferenceNewTable sql.NullString `json:"action_reference_new_table"` // action_reference_new_table
	ActionReferenceOldRow   sql.NullString `json:"action_reference_old_row"`   // action_reference_old_row
	ActionReferenceNewRow   sql.NullString `json:"action_reference_new_row"`   // action_reference_new_row
	Created                 sql.NullTime   `json:"created"`                    // created
}

Trigger represents a row from 'information_schema.triggers'.

type TriggeredUpdateColumn

type TriggeredUpdateColumn struct {
	TriggerCatalog     sql.NullString `json:"trigger_catalog"`      // trigger_catalog
	TriggerSchema      sql.NullString `json:"trigger_schema"`       // trigger_schema
	TriggerName        sql.NullString `json:"trigger_name"`         // trigger_name
	EventObjectCatalog sql.NullString `json:"event_object_catalog"` // event_object_catalog
	EventObjectSchema  sql.NullString `json:"event_object_schema"`  // event_object_schema
	EventObjectTable   sql.NullString `json:"event_object_table"`   // event_object_table
	EventObjectColumn  sql.NullString `json:"event_object_column"`  // event_object_column
}

TriggeredUpdateColumn represents a row from 'information_schema.triggered_update_columns'.

type UdtPrivilege

type UdtPrivilege struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	UdtCatalog    sql.NullString `json:"udt_catalog"`    // udt_catalog
	UdtSchema     sql.NullString `json:"udt_schema"`     // udt_schema
	UdtName       sql.NullString `json:"udt_name"`       // udt_name
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

UdtPrivilege represents a row from 'information_schema.udt_privileges'.

type UsagePrivilege

type UsagePrivilege struct {
	Grantor       sql.NullString `json:"grantor"`        // grantor
	Grantee       sql.NullString `json:"grantee"`        // grantee
	ObjectCatalog sql.NullString `json:"object_catalog"` // object_catalog
	ObjectSchema  sql.NullString `json:"object_schema"`  // object_schema
	ObjectName    sql.NullString `json:"object_name"`    // object_name
	ObjectType    sql.NullString `json:"object_type"`    // object_type
	PrivilegeType sql.NullString `json:"privilege_type"` // privilege_type
	IsGrantable   sql.NullString `json:"is_grantable"`   // is_grantable
}

UsagePrivilege represents a row from 'information_schema.usage_privileges'.

type UserDefinedType

type UserDefinedType struct {
	UserDefinedTypeCatalog  sql.NullString `json:"user_defined_type_catalog"`  // user_defined_type_catalog
	UserDefinedTypeSchema   sql.NullString `json:"user_defined_type_schema"`   // user_defined_type_schema
	UserDefinedTypeName     sql.NullString `json:"user_defined_type_name"`     // user_defined_type_name
	UserDefinedTypeCategory sql.NullString `json:"user_defined_type_category"` // user_defined_type_category
	IsInstantiable          sql.NullString `json:"is_instantiable"`            // is_instantiable
	IsFinal                 sql.NullString `json:"is_final"`                   // is_final
	OrderingForm            sql.NullString `json:"ordering_form"`              // ordering_form
	OrderingCategory        sql.NullString `json:"ordering_category"`          // ordering_category
	OrderingRoutineCatalog  sql.NullString `json:"ordering_routine_catalog"`   // ordering_routine_catalog
	OrderingRoutineSchema   sql.NullString `json:"ordering_routine_schema"`    // ordering_routine_schema
	OrderingRoutineName     sql.NullString `json:"ordering_routine_name"`      // ordering_routine_name
	ReferenceType           sql.NullString `json:"reference_type"`             // reference_type
	DataType                sql.NullString `json:"data_type"`                  // data_type
	CharacterMaximumLength  sql.NullInt64  `json:"character_maximum_length"`   // character_maximum_length
	CharacterOctetLength    sql.NullInt64  `json:"character_octet_length"`     // character_octet_length
	CharacterSetCatalog     sql.NullString `json:"character_set_catalog"`      // character_set_catalog
	CharacterSetSchema      sql.NullString `json:"character_set_schema"`       // character_set_schema
	CharacterSetName        sql.NullString `json:"character_set_name"`         // character_set_name
	CollationCatalog        sql.NullString `json:"collation_catalog"`          // collation_catalog
	CollationSchema         sql.NullString `json:"collation_schema"`           // collation_schema
	CollationName           sql.NullString `json:"collation_name"`             // collation_name
	NumericPrecision        sql.NullInt64  `json:"numeric_precision"`          // numeric_precision
	NumericPrecisionRadix   sql.NullInt64  `json:"numeric_precision_radix"`    // numeric_precision_radix
	NumericScale            sql.NullInt64  `json:"numeric_scale"`              // numeric_scale
	DatetimePrecision       sql.NullInt64  `json:"datetime_precision"`         // datetime_precision
	IntervalType            sql.NullString `json:"interval_type"`              // interval_type
	IntervalPrecision       sql.NullInt64  `json:"interval_precision"`         // interval_precision
	SourceDtdIdentifier     sql.NullString `json:"source_dtd_identifier"`      // source_dtd_identifier
	RefDtdIdentifier        sql.NullString `json:"ref_dtd_identifier"`         // ref_dtd_identifier
}

UserDefinedType represents a row from 'information_schema.user_defined_types'.

type UserMapping

type UserMapping struct {
	AuthorizationIdentifier sql.NullString `json:"authorization_identifier"` // authorization_identifier
	ForeignServerCatalog    sql.NullString `json:"foreign_server_catalog"`   // foreign_server_catalog
	ForeignServerName       sql.NullString `json:"foreign_server_name"`      // foreign_server_name
}

UserMapping represents a row from 'information_schema.user_mappings'.

type UserMappingOption

type UserMappingOption struct {
	AuthorizationIdentifier sql.NullString `json:"authorization_identifier"` // authorization_identifier
	ForeignServerCatalog    sql.NullString `json:"foreign_server_catalog"`   // foreign_server_catalog
	ForeignServerName       sql.NullString `json:"foreign_server_name"`      // foreign_server_name
	OptionName              sql.NullString `json:"option_name"`              // option_name
	OptionValue             sql.NullString `json:"option_value"`             // option_value
}

UserMappingOption represents a row from 'information_schema.user_mapping_options'.

type View

type View struct {
	TableCatalog            sql.NullString `json:"table_catalog"`              // table_catalog
	TableSchema             sql.NullString `json:"table_schema"`               // table_schema
	TableName               sql.NullString `json:"table_name"`                 // table_name
	ViewDefinition          sql.NullString `json:"view_definition"`            // view_definition
	CheckOption             sql.NullString `json:"check_option"`               // check_option
	IsUpdatable             sql.NullString `json:"is_updatable"`               // is_updatable
	IsInsertableInto        sql.NullString `json:"is_insertable_into"`         // is_insertable_into
	IsTriggerUpdatable      sql.NullString `json:"is_trigger_updatable"`       // is_trigger_updatable
	IsTriggerDeletable      sql.NullString `json:"is_trigger_deletable"`       // is_trigger_deletable
	IsTriggerInsertableInto sql.NullString `json:"is_trigger_insertable_into"` // is_trigger_insertable_into
}

View represents a row from 'information_schema.views'.

type ViewColumnUsage

type ViewColumnUsage struct {
	ViewCatalog  sql.NullString `json:"view_catalog"`  // view_catalog
	ViewSchema   sql.NullString `json:"view_schema"`   // view_schema
	ViewName     sql.NullString `json:"view_name"`     // view_name
	TableCatalog sql.NullString `json:"table_catalog"` // table_catalog
	TableSchema  sql.NullString `json:"table_schema"`  // table_schema
	TableName    sql.NullString `json:"table_name"`    // table_name
	ColumnName   sql.NullString `json:"column_name"`   // column_name
}

ViewColumnUsage represents a row from 'information_schema.view_column_usage'.

type ViewRoutineUsage

type ViewRoutineUsage struct {
	TableCatalog    sql.NullString `json:"table_catalog"`    // table_catalog
	TableSchema     sql.NullString `json:"table_schema"`     // table_schema
	TableName       sql.NullString `json:"table_name"`       // table_name
	SpecificCatalog sql.NullString `json:"specific_catalog"` // specific_catalog
	SpecificSchema  sql.NullString `json:"specific_schema"`  // specific_schema
	SpecificName    sql.NullString `json:"specific_name"`    // specific_name
}

ViewRoutineUsage represents a row from 'information_schema.view_routine_usage'.

type ViewTableUsage

type ViewTableUsage struct {
	ViewCatalog  sql.NullString `json:"view_catalog"`  // view_catalog
	ViewSchema   sql.NullString `json:"view_schema"`   // view_schema
	ViewName     sql.NullString `json:"view_name"`     // view_name
	TableCatalog sql.NullString `json:"table_catalog"` // table_catalog
	TableSchema  sql.NullString `json:"table_schema"`  // table_schema
	TableName    sql.NullString `json:"table_name"`    // table_name
}

ViewTableUsage represents a row from 'information_schema.view_table_usage'.

Source Files

Jump to

Keyboard shortcuts

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