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 // 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 ¶
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