ischema

package
v0.0.0-...-f26ed8c Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 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           `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      pgtypes.CharacterData `json:"feature_id"`       // feature_id
	FeatureName    pgtypes.CharacterData `json:"feature_name"`     // feature_name
	SubFeatureID   pgtypes.CharacterData `json:"sub_feature_id"`   // sub_feature_id
	SubFeatureName pgtypes.CharacterData `json:"sub_feature_name"` // sub_feature_name
	IsSupported    pgtypes.YesOrNo       `json:"is_supported"`     // is_supported
	IsVerifiedBy   pgtypes.CharacterData `json:"is_verified_by"`   // is_verified_by
	Comments       pgtypes.CharacterData `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   pgtypes.CharacterData  `json:"implementation_info_id"`   // implementation_info_id
	ImplementationInfoName pgtypes.CharacterData  `json:"implementation_info_name"` // implementation_info_name
	IntegerValue           pgtypes.CardinalNumber `json:"integer_value"`            // integer_value
	CharacterValue         pgtypes.CharacterData  `json:"character_value"`          // character_value
	Comments               pgtypes.CharacterData  `json:"comments"`                 // comments
}

SQLImplementationInfo represents a row from 'information_schema.sql_implementation_info'.

type SQLLanguage

type SQLLanguage 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
	SQLLanguageSource              pgtypes.CharacterData `json:"sql_language_source"`               // sql_language_source
	SQLLanguageYear                pgtypes.CharacterData `json:"sql_language_year"`                 // sql_language_year
	SQLLanguageConformance         pgtypes.CharacterData `json:"sql_language_conformance"`          // sql_language_conformance
	SQLLanguageIntegrity           pgtypes.CharacterData `json:"sql_language_integrity"`            // sql_language_integrity
	SQLLanguageImplementation      pgtypes.CharacterData `json:"sql_language_implementation"`       // sql_language_implementation
	SQLLanguageBindingStyle        pgtypes.CharacterData `json:"sql_language_binding_style"`        // sql_language_binding_style
	SQLLanguageProgrammingLanguage pgtypes.CharacterData `json:"sql_language_programming_language"` // sql_language_programming_language
}

SQLLanguage represents a row from 'information_schema.sql_languages'.

type SQLPackage

type SQLPackage 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    pgtypes.CharacterData `json:"feature_id"`     // feature_id
	FeatureName  pgtypes.CharacterData `json:"feature_name"`   // feature_name
	IsSupported  pgtypes.YesOrNo       `json:"is_supported"`   // is_supported
	IsVerifiedBy pgtypes.CharacterData `json:"is_verified_by"` // is_verified_by
	Comments     pgtypes.CharacterData `json:"comments"`       // comments
}

SQLPackage represents a row from 'information_schema.sql_packages'.

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    pgtypes.CharacterData `json:"feature_id"`     // feature_id
	FeatureName  pgtypes.CharacterData `json:"feature_name"`   // feature_name
	IsSupported  pgtypes.YesOrNo       `json:"is_supported"`   // is_supported
	IsVerifiedBy pgtypes.CharacterData `json:"is_verified_by"` // is_verified_by
	Comments     pgtypes.CharacterData `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       pgtypes.CardinalNumber `json:"sizing_id"`       // sizing_id
	SizingName     pgtypes.CharacterData  `json:"sizing_name"`     // sizing_name
	SupportedValue pgtypes.CardinalNumber `json:"supported_value"` // supported_value
	Comments       pgtypes.CharacterData  `json:"comments"`        // comments
}

SQLSizing represents a row from 'information_schema.sql_sizing'.

type SQLSizingProfile

type SQLSizingProfile 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      pgtypes.CardinalNumber `json:"sizing_id"`      // sizing_id
	SizingName    pgtypes.CharacterData  `json:"sizing_name"`    // sizing_name
	ProfileID     pgtypes.CharacterData  `json:"profile_id"`     // profile_id
	RequiredValue pgtypes.CardinalNumber `json:"required_value"` // required_value
	Comments      pgtypes.CharacterData  `json:"comments"`       // 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