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 ¶
- Variables
- func PgCharMaxLength(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgCharOctetLength(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgDatetimePrecision(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgExpandarray(db XODB, v0 pgtypes.Anyarray) ([]pgtypes.Record, error)
- func PgIndexPosition(db XODB, v0 pgtypes.Oid, v1 int16) (int, error)
- func PgIntervalType(db XODB, v0 pgtypes.Oid, v1 int) (string, error)
- func PgKeysequal(db XODB, v0 []int16, v1 []int16) (bool, error)
- func PgNumericPrecision(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgNumericPrecisionRadix(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgNumericScale(db XODB, v0 pgtypes.Oid, v1 int) (int, error)
- func PgTruetypid(db XODB, v0 pgtypes.PgAttribute, v1 pgtypes.PgType) (pgtypes.Oid, error)
- func PgTruetypmod(db XODB, v0 pgtypes.PgAttribute, v1 pgtypes.PgType) (int, error)
- type SQLFeature
- type SQLImplementationInfo
- type SQLLanguage
- type SQLPackage
- type SQLPart
- type SQLSizing
- type SQLSizingProfile
- type ScannerValuer
- type Slice
- type StringSlice
- type XODB
Constants ¶
This section is empty.
Variables ¶
var XOLog = func(string, ...interface{}) {}
XOLog provides the log func used by generated queries.
Functions ¶
func PgCharMaxLength ¶
PgCharMaxLength calls the stored procedure 'information_schema._pg_char_max_length(oid, integer) integer' on db.
func PgCharOctetLength ¶
PgCharOctetLength calls the stored procedure 'information_schema._pg_char_octet_length(oid, integer) integer' on db.
func PgDatetimePrecision ¶
PgDatetimePrecision calls the stored procedure 'information_schema._pg_datetime_precision(oid, integer) integer' on db.
func PgExpandarray ¶
PgExpandarray calls the stored procedure 'information_schema._pg_expandarray(anyarray) SETOF record' on db.
func PgIndexPosition ¶
PgIndexPosition calls the stored procedure 'information_schema._pg_index_position(oid, smallint) integer' on db.
func PgIntervalType ¶
PgIntervalType calls the stored procedure 'information_schema._pg_interval_type(oid, integer) text' on db.
func PgKeysequal ¶
PgKeysequal calls the stored procedure 'information_schema._pg_keysequal(smallint[], smallint[]) boolean' on db.
func PgNumericPrecision ¶
PgNumericPrecision calls the stored procedure 'information_schema._pg_numeric_precision(oid, integer) integer' on db.
func PgNumericPrecisionRadix ¶
PgNumericPrecisionRadix calls the stored procedure 'information_schema._pg_numeric_precision_radix(oid, integer) integer' on db.
func PgNumericScale ¶
PgNumericScale calls the stored procedure 'information_schema._pg_numeric_scale(oid, integer) integer' on db.
func PgTruetypid ¶
PgTruetypid calls the stored procedure 'information_schema._pg_truetypid(pg_attribute, pg_type) oid' on db.
func PgTruetypmod ¶
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 ¶
ScannerValuer is the common interface for types that implement both the database/sql.Scanner and sql/driver.Valuer interfaces.
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.
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.
Source Files ¶
- sp_pgcharmaxlength.xo.go
- sp_pgcharoctetlength.xo.go
- sp_pgdatetimeprecision.xo.go
- sp_pgexpandarray.xo.go
- sp_pgindexposition.xo.go
- sp_pgintervaltype.xo.go
- sp_pgkeysequal.xo.go
- sp_pgnumericprecision.xo.go
- sp_pgnumericprecisionradix.xo.go
- sp_pgnumericscale.xo.go
- sp_pgtruetypid.xo.go
- sp_pgtruetypmod.xo.go
- sqlfeature.xo.go
- sqlimplementationinfo.xo.go
- sqllanguage.xo.go
- sqlpackage.xo.go
- sqlpart.xo.go
- sqlsizing.xo.go
- sqlsizingprofile.xo.go
- xo_db.xo.go