ischema

package
v0.0.0-...-fd69b6f Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Package ischema contains the types for schema 'information_schema'.

Index

Constants

This section is empty.

Variables

View Source
var XOLog = func(string, ...interface{}) {}

XOLog provides the log func used by generated queries.

Functions

func PgCharMaxLength

func PgCharMaxLength(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgCharOctetLength

func PgCharOctetLength(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgDatetimePrecision

func PgDatetimePrecision(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgExpandarray

func PgExpandarray(db XODB, v0 pgtypes.Anyarray) ([]pgtypes.Record, error)

PgExpandarray calls the stored procedure 'information_schema._pg_expandarray(anyarray) SETOF record' on db.

func PgIndexPosition

func PgIndexPosition(db XODB, v0 pgtypes.Oid, v1 int16) (int, error)

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

func PgIntervalType

func PgIntervalType(db XODB, v0 pgtypes.Oid, v1 int) (string, error)

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

func PgKeysequal

func PgKeysequal(db XODB, v0 []int16, v1 []int16) (bool, error)

PgKeysequal calls the stored procedure 'information_schema._pg_keysequal(smallint[], smallint[]) boolean' on db.

func PgNumericPrecision

func PgNumericPrecision(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgNumericPrecisionRadix

func PgNumericPrecisionRadix(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgNumericScale

func PgNumericScale(db XODB, v0 pgtypes.Oid, v1 int) (int, error)

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

func PgTruetypid

func PgTruetypid(db XODB, v0 pgtypes.PgAttribute, v1 pgtypes.PgType) (pgtypes.Oid, error)

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

func PgTruetypmod

func PgTruetypmod(db XODB, v0 pgtypes.PgAttribute, v1 pgtypes.PgType) (int, error)

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

Types

type SQLFeature

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

SQLFeature represents a row from information_schema.sql_features.

type SQLImplementationInfo

type SQLImplementationInfo struct {
	Tableoid               pgtypes.Oid            // tableoid
	Cmax                   pgtypes.Cid            // cmax
	Xmax                   pgtypes.Xid            // xmax
	Cmin                   pgtypes.Cid            // cmin
	Xmin                   pgtypes.Xid            // xmin
	Ctid                   pgtypes.Tid            // ctid
	ImplementationInfoID   pgtypes.CharacterData  // implementation_info_id
	ImplementationInfoName pgtypes.CharacterData  // implementation_info_name
	IntegerValue           pgtypes.CardinalNumber // integer_value
	CharacterValue         pgtypes.CharacterData  // character_value
	Comments               pgtypes.CharacterData  // comments
}

SQLImplementationInfo represents a row from information_schema.sql_implementation_info.

type SQLLanguage

type SQLLanguage struct {
	Tableoid                       pgtypes.Oid           // tableoid
	Cmax                           pgtypes.Cid           // cmax
	Xmax                           pgtypes.Xid           // xmax
	Cmin                           pgtypes.Cid           // cmin
	Xmin                           pgtypes.Xid           // xmin
	Ctid                           pgtypes.Tid           // ctid
	SQLLanguageSource              pgtypes.CharacterData // sql_language_source
	SQLLanguageYear                pgtypes.CharacterData // sql_language_year
	SQLLanguageConformance         pgtypes.CharacterData // sql_language_conformance
	SQLLanguageIntegrity           pgtypes.CharacterData // sql_language_integrity
	SQLLanguageImplementation      pgtypes.CharacterData // sql_language_implementation
	SQLLanguageBindingStyle        pgtypes.CharacterData // sql_language_binding_style
	SQLLanguageProgrammingLanguage pgtypes.CharacterData // sql_language_programming_language
}

SQLLanguage represents a row from information_schema.sql_languages.

type SQLPackage

type SQLPackage struct {
	Tableoid     pgtypes.Oid           // tableoid
	Cmax         pgtypes.Cid           // cmax
	Xmax         pgtypes.Xid           // xmax
	Cmin         pgtypes.Cid           // cmin
	Xmin         pgtypes.Xid           // xmin
	Ctid         pgtypes.Tid           // ctid
	FeatureID    pgtypes.CharacterData // feature_id
	FeatureName  pgtypes.CharacterData // feature_name
	IsSupported  pgtypes.YesOrNo       // is_supported
	IsVerifiedBy pgtypes.CharacterData // is_verified_by
	Comments     pgtypes.CharacterData // comments
}

SQLPackage represents a row from information_schema.sql_packages.

type SQLPart

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

SQLPart represents a row from information_schema.sql_parts.

type SQLSizing

type SQLSizing struct {
	Tableoid       pgtypes.Oid            // tableoid
	Cmax           pgtypes.Cid            // cmax
	Xmax           pgtypes.Xid            // xmax
	Cmin           pgtypes.Cid            // cmin
	Xmin           pgtypes.Xid            // xmin
	Ctid           pgtypes.Tid            // ctid
	SizingID       pgtypes.CardinalNumber // sizing_id
	SizingName     pgtypes.CharacterData  // sizing_name
	SupportedValue pgtypes.CardinalNumber // supported_value
	Comments       pgtypes.CharacterData  // comments
}

SQLSizing represents a row from information_schema.sql_sizing.

type SQLSizingProfile

type SQLSizingProfile struct {
	Tableoid      pgtypes.Oid            // tableoid
	Cmax          pgtypes.Cid            // cmax
	Xmax          pgtypes.Xid            // xmax
	Cmin          pgtypes.Cid            // cmin
	Xmin          pgtypes.Xid            // xmin
	Ctid          pgtypes.Tid            // ctid
	SizingID      pgtypes.CardinalNumber // sizing_id
	SizingName    pgtypes.CharacterData  // sizing_name
	ProfileID     pgtypes.CharacterData  // profile_id
	RequiredValue pgtypes.CardinalNumber // required_value
	Comments      pgtypes.CharacterData  // comments
}

SQLSizingProfile represents a row from information_schema.sql_sizing_profiles.

type ScannerValuer

type ScannerValuer interface {
	sql.Scanner
	driver.Valuer
}

ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.

type Slice

type Slice []ScannerValuer

Slice is a slice of ScannerValuers.

type StringSlice

type StringSlice []string

StringSlice is a slice of strings.

func (*StringSlice) Scan

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

Scan satisfies the sql.Scanner interface for StringSlice.

func (StringSlice) Value

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

Value satisfies the driver.Valuer interface for StringSlice.

type XODB

type XODB interface {
	Exec(string, ...interface{}) (sql.Result, error)
	Query(string, ...interface{}) (*sql.Rows, error)
	QueryRow(string, ...interface{}) *sql.Row
}

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

This should work with database/sql.DB and database/sql.Tx.

Jump to

Keyboard shortcuts

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