/_examples/pgcatalog/pgcatalog/pgcatalog.xo.go
Go | 12072 lines | 8683 code | 860 blank | 2529 comment | 1475 complexity | e0ce5dccc891ed58e1e979f4aca9e850 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- // Package pgcatalog contains generated code for schema 'pg_catalog'.
- package pgcatalog
- // Code generated by xo. DO NOT EDIT.
- import (
- "context"
- "database/sql"
- "database/sql/driver"
- "encoding/csv"
- "fmt"
- "io"
- "regexp"
- "strings"
- "time"
- "github.com/xo/xo/_examples/pgcatalog/pgtypes"
- "github.com/google/uuid"
- )
- var (
- // logf is used by generated code to log SQL queries.
- logf = func(string, ...interface{}) {}
- // errf is used by generated code to log SQL errors.
- errf = func(string, ...interface{}) {}
- )
- // logerror logs the error and returns it.
- func logerror(err error) error {
- errf("ERROR: %v", err)
- return err
- }
- // Logf logs a message using the package logger.
- func Logf(s string, v ...interface{}) {
- logf(s, v...)
- }
- // SetLogger sets the package logger. Valid logger types:
- //
- // io.Writer
- // func(string, ...interface{}) (int, error) // fmt.Printf
- // func(string, ...interface{}) // log.Printf
- //
- func SetLogger(logger interface{}) {
- logf = convLogger(logger)
- }
- // Errorf logs an error message using the package error logger.
- func Errorf(s string, v ...interface{}) {
- errf(s, v...)
- }
- // SetErrorLogger sets the package error logger. Valid logger types:
- //
- // io.Writer
- // func(string, ...interface{}) (int, error) // fmt.Printf
- // func(string, ...interface{}) // log.Printf
- //
- func SetErrorLogger(logger interface{}) {
- errf = convLogger(logger)
- }
- // convLogger converts logger to the standard logger interface.
- func convLogger(logger interface{}) func(string, ...interface{}) {
- switch z := logger.(type) {
- case io.Writer:
- return func(s string, v ...interface{}) {
- fmt.Fprintf(z, s, v...)
- }
- case func(string, ...interface{}) (int, error): // fmt.Printf
- return func(s string, v ...interface{}) {
- _, _ = z(s, v...)
- }
- case func(string, ...interface{}): // log.Printf
- return z
- }
- panic(fmt.Sprintf("unsupported logger type %T", logger))
- }
- // DB is the common interface for database operations that can be used with
- // types from schema 'pg_catalog'.
- //
- // This works with both database/sql.DB and database/sql.Tx.
- 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
- }
- // Error is an error.
- type Error string
- // Error satisfies the error interface.
- func (err Error) Error() string {
- return string(err)
- }
- // Error values.
- 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"
- )
- // ErrInsertFailed is the insert failed error.
- type ErrInsertFailed struct {
- Err error
- }
- // Error satisfies the error interface.
- func (err *ErrInsertFailed) Error() string {
- return fmt.Sprintf("insert failed: %v", err.Err)
- }
- // Unwrap satisfies the unwrap interface.
- func (err *ErrInsertFailed) Unwrap() error {
- return err.Err
- }
- // ErrUpdateFailed is the update failed error.
- type ErrUpdateFailed struct {
- Err error
- }
- // Error satisfies the error interface.
- func (err *ErrUpdateFailed) Error() string {
- return fmt.Sprintf("update failed: %v", err.Err)
- }
- // Unwrap satisfies the unwrap interface.
- func (err *ErrUpdateFailed) Unwrap() error {
- return err.Err
- }
- // ErrUpsertFailed is the upsert failed error.
- type ErrUpsertFailed struct {
- Err error
- }
- // Error satisfies the error interface.
- func (err *ErrUpsertFailed) Error() string {
- return fmt.Sprintf("upsert failed: %v", err.Err)
- }
- // Unwrap satisfies the unwrap interface.
- func (err *ErrUpsertFailed) Unwrap() error {
- return err.Err
- }
- // ErrDecodeFailed is the decode failed error.
- type ErrDecodeFailed struct {
- Err error
- }
- // Error satisfies the error interface.
- func (err *ErrDecodeFailed) Error() string {
- return fmt.Sprintf("unable to decode: %v", err.Err)
- }
- // Unwrap satisfies the unwrap interface.
- func (err *ErrDecodeFailed) Unwrap() error {
- return err.Err
- }
- // ErrInvalidStringSlice is the invalid StringSlice error.
- const ErrInvalidStringSlice Error = "invalid StringSlice"
- // StringSlice is a slice of strings.
- type StringSlice []string
- // Scan satisfies the sql.Scanner interface for StringSlice.
- func (ss *StringSlice) Scan(v interface{}) error {
- buf, ok := v.([]byte)
- if !ok {
- return logerror(ErrInvalidStringSlice)
- }
- // change quote escapes for csv parser
- str := strings.Replace(quoteEscRE.ReplaceAllString(string(buf), `$1""`), `\\`, `\`, -1)
- str = str[1 : len(str)-1]
- // bail if only one
- if len(str) == 0 {
- return nil
- }
- // parse with csv reader
- r := csv.NewReader(strings.NewReader(str))
- line, err := r.Read()
- if err != nil {
- return logerror(&ErrDecodeFailed{err})
- }
- *ss = StringSlice(line)
- return nil
- }
- // quoteEscRE matches escaped characters in a string.
- var quoteEscRE = regexp.MustCompile(`([^\\]([\\]{2})*)\\"`)
- // Value satisfies the sql/driver.Valuer interface.
- func (ss StringSlice) Value() (driver.Value, error) {
- v := make([]string, len(ss))
- for i, s := range ss {
- v[i] = `"` + strings.Replace(strings.Replace(s, `\`, `\\\`, -1), `"`, `\"`, -1) + `"`
- }
- return "{" + strings.Join(v, ",") + "}", nil
- }
- // PgAggregate represents a row from 'pg_catalog.pg_aggregate'.
- type PgAggregate 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
- Aggfnoid pgtypes.Regproc `json:"aggfnoid"` // aggfnoid
- Aggkind pgtypes.Char `json:"aggkind"` // aggkind
- Aggnumdirectargs int16 `json:"aggnumdirectargs"` // aggnumdirectargs
- Aggtransfn pgtypes.Regproc `json:"aggtransfn"` // aggtransfn
- Aggfinalfn pgtypes.Regproc `json:"aggfinalfn"` // aggfinalfn
- Aggcombinefn pgtypes.Regproc `json:"aggcombinefn"` // aggcombinefn
- Aggserialfn pgtypes.Regproc `json:"aggserialfn"` // aggserialfn
- Aggdeserialfn pgtypes.Regproc `json:"aggdeserialfn"` // aggdeserialfn
- Aggmtransfn pgtypes.Regproc `json:"aggmtransfn"` // aggmtransfn
- Aggminvtransfn pgtypes.Regproc `json:"aggminvtransfn"` // aggminvtransfn
- Aggmfinalfn pgtypes.Regproc `json:"aggmfinalfn"` // aggmfinalfn
- Aggfinalextra bool `json:"aggfinalextra"` // aggfinalextra
- Aggmfinalextra bool `json:"aggmfinalextra"` // aggmfinalextra
- Aggfinalmodify pgtypes.Char `json:"aggfinalmodify"` // aggfinalmodify
- Aggmfinalmodify pgtypes.Char `json:"aggmfinalmodify"` // aggmfinalmodify
- Aggsortop pgtypes.Oid `json:"aggsortop"` // aggsortop
- Aggtranstype pgtypes.Oid `json:"aggtranstype"` // aggtranstype
- Aggtransspace int `json:"aggtransspace"` // aggtransspace
- Aggmtranstype pgtypes.Oid `json:"aggmtranstype"` // aggmtranstype
- Aggmtransspace int `json:"aggmtransspace"` // aggmtransspace
- Agginitval sql.NullString `json:"agginitval"` // agginitval
- Aggminitval sql.NullString `json:"aggminitval"` // aggminitval
- }
- // PgAm represents a row from 'pg_catalog.pg_am'.
- type PgAm 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Amname string `json:"amname"` // amname
- Amhandler pgtypes.Regproc `json:"amhandler"` // amhandler
- Amtype pgtypes.Char `json:"amtype"` // amtype
- }
- // PgAmop represents a row from 'pg_catalog.pg_amop'.
- type PgAmop 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Amopfamily pgtypes.Oid `json:"amopfamily"` // amopfamily
- Amoplefttype pgtypes.Oid `json:"amoplefttype"` // amoplefttype
- Amoprighttype pgtypes.Oid `json:"amoprighttype"` // amoprighttype
- Amopstrategy int16 `json:"amopstrategy"` // amopstrategy
- Amoppurpose pgtypes.Char `json:"amoppurpose"` // amoppurpose
- Amopopr pgtypes.Oid `json:"amopopr"` // amopopr
- Amopmethod pgtypes.Oid `json:"amopmethod"` // amopmethod
- Amopsortfamily pgtypes.Oid `json:"amopsortfamily"` // amopsortfamily
- }
- // PgAmproc represents a row from 'pg_catalog.pg_amproc'.
- type PgAmproc 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Amprocfamily pgtypes.Oid `json:"amprocfamily"` // amprocfamily
- Amproclefttype pgtypes.Oid `json:"amproclefttype"` // amproclefttype
- Amprocrighttype pgtypes.Oid `json:"amprocrighttype"` // amprocrighttype
- Amprocnum int16 `json:"amprocnum"` // amprocnum
- Amproc pgtypes.Regproc `json:"amproc"` // amproc
- }
- // PgAttrdef represents a row from 'pg_catalog.pg_attrdef'.
- type PgAttrdef 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Adrelid pgtypes.Oid `json:"adrelid"` // adrelid
- Adnum int16 `json:"adnum"` // adnum
- Adbin pgtypes.PgNodeTree `json:"adbin"` // adbin
- }
- // PgAttribute represents a row from 'pg_catalog.pg_attribute'.
- type PgAttribute 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
- Attrelid pgtypes.Oid `json:"attrelid"` // attrelid
- Attname string `json:"attname"` // attname
- Atttypid pgtypes.Oid `json:"atttypid"` // atttypid
- Attstattarget int `json:"attstattarget"` // attstattarget
- Attlen int16 `json:"attlen"` // attlen
- Attnum int16 `json:"attnum"` // attnum
- Attndims int `json:"attndims"` // attndims
- Attcacheoff int `json:"attcacheoff"` // attcacheoff
- Atttypmod int `json:"atttypmod"` // atttypmod
- Attbyval bool `json:"attbyval"` // attbyval
- Attstorage pgtypes.Char `json:"attstorage"` // attstorage
- Attalign pgtypes.Char `json:"attalign"` // attalign
- Attnotnull bool `json:"attnotnull"` // attnotnull
- Atthasdef bool `json:"atthasdef"` // atthasdef
- Atthasmissing bool `json:"atthasmissing"` // atthasmissing
- Attidentity pgtypes.Char `json:"attidentity"` // attidentity
- Attgenerated pgtypes.Char `json:"attgenerated"` // attgenerated
- Attisdropped bool `json:"attisdropped"` // attisdropped
- Attislocal bool `json:"attislocal"` // attislocal
- Attinhcount int `json:"attinhcount"` // attinhcount
- Attcollation pgtypes.Oid `json:"attcollation"` // attcollation
- Attacl []pgtypes.NullAclitem `json:"attacl"` // attacl
- Attoptions []sql.NullString `json:"attoptions"` // attoptions
- Attfdwoptions []sql.NullString `json:"attfdwoptions"` // attfdwoptions
- Attmissingval pgtypes.NullAnyarray `json:"attmissingval"` // attmissingval
- }
- // PgAuthMember represents a row from 'pg_catalog.pg_auth_members'.
- type PgAuthMember 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
- Roleid pgtypes.Oid `json:"roleid"` // roleid
- Member pgtypes.Oid `json:"member"` // member
- Grantor pgtypes.Oid `json:"grantor"` // grantor
- AdminOption bool `json:"admin_option"` // admin_option
- }
- // PgAuthid represents a row from 'pg_catalog.pg_authid'.
- type PgAuthid 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Rolname string `json:"rolname"` // rolname
- Rolsuper bool `json:"rolsuper"` // rolsuper
- Rolinherit bool `json:"rolinherit"` // rolinherit
- Rolcreaterole bool `json:"rolcreaterole"` // rolcreaterole
- Rolcreatedb bool `json:"rolcreatedb"` // rolcreatedb
- Rolcanlogin bool `json:"rolcanlogin"` // rolcanlogin
- Rolreplication bool `json:"rolreplication"` // rolreplication
- Rolbypassrls bool `json:"rolbypassrls"` // rolbypassrls
- Rolconnlimit int `json:"rolconnlimit"` // rolconnlimit
- Rolpassword sql.NullString `json:"rolpassword"` // rolpassword
- Rolvaliduntil sql.NullTime `json:"rolvaliduntil"` // rolvaliduntil
- }
- // PgAvailableExtension represents a row from 'pg_catalog.pg_available_extensions'.
- type PgAvailableExtension struct {
- Name sql.NullString `json:"name"` // name
- DefaultVersion sql.NullString `json:"default_version"` // default_version
- InstalledVersion sql.NullString `json:"installed_version"` // installed_version
- Comment sql.NullString `json:"comment"` // comment
- }
- // PgAvailableExtensionVersion represents a row from 'pg_catalog.pg_available_extension_versions'.
- type PgAvailableExtensionVersion struct {
- Name sql.NullString `json:"name"` // name
- Version sql.NullString `json:"version"` // version
- Installed sql.NullBool `json:"installed"` // installed
- Superuser sql.NullBool `json:"superuser"` // superuser
- Trusted sql.NullBool `json:"trusted"` // trusted
- Relocatable sql.NullBool `json:"relocatable"` // relocatable
- Schema sql.NullString `json:"schema"` // schema
- Requires []sql.NullString `json:"requires"` // requires
- Comment sql.NullString `json:"comment"` // comment
- }
- // PgCast represents a row from 'pg_catalog.pg_cast'.
- type PgCast 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Castsource pgtypes.Oid `json:"castsource"` // castsource
- Casttarget pgtypes.Oid `json:"casttarget"` // casttarget
- Castfunc pgtypes.Oid `json:"castfunc"` // castfunc
- Castcontext pgtypes.Char `json:"castcontext"` // castcontext
- Castmethod pgtypes.Char `json:"castmethod"` // castmethod
- }
- // PgClass represents a row from 'pg_catalog.pg_class'.
- type PgClass 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Relname string `json:"relname"` // relname
- Relnamespace pgtypes.Oid `json:"relnamespace"` // relnamespace
- Reltype pgtypes.Oid `json:"reltype"` // reltype
- Reloftype pgtypes.Oid `json:"reloftype"` // reloftype
- Relowner pgtypes.Oid `json:"relowner"` // relowner
- Relam pgtypes.Oid `json:"relam"` // relam
- Relfilenode pgtypes.Oid `json:"relfilenode"` // relfilenode
- Reltablespace pgtypes.Oid `json:"reltablespace"` // reltablespace
- Relpages int `json:"relpages"` // relpages
- Reltuples float32 `json:"reltuples"` // reltuples
- Relallvisible int `json:"relallvisible"` // relallvisible
- Reltoastrelid pgtypes.Oid `json:"reltoastrelid"` // reltoastrelid
- Relhasindex bool `json:"relhasindex"` // relhasindex
- Relisshared bool `json:"relisshared"` // relisshared
- Relpersistence pgtypes.Char `json:"relpersistence"` // relpersistence
- Relkind pgtypes.Char `json:"relkind"` // relkind
- Relnatts int16 `json:"relnatts"` // relnatts
- Relchecks int16 `json:"relchecks"` // relchecks
- Relhasrules bool `json:"relhasrules"` // relhasrules
- Relhastriggers bool `json:"relhastriggers"` // relhastriggers
- Relhassubclass bool `json:"relhassubclass"` // relhassubclass
- Relrowsecurity bool `json:"relrowsecurity"` // relrowsecurity
- Relforcerowsecurity bool `json:"relforcerowsecurity"` // relforcerowsecurity
- Relispopulated bool `json:"relispopulated"` // relispopulated
- Relreplident pgtypes.Char `json:"relreplident"` // relreplident
- Relispartition bool `json:"relispartition"` // relispartition
- Relrewrite pgtypes.Oid `json:"relrewrite"` // relrewrite
- Relfrozenxid pgtypes.Xid `json:"relfrozenxid"` // relfrozenxid
- Relminmxid pgtypes.Xid `json:"relminmxid"` // relminmxid
- Relacl []pgtypes.NullAclitem `json:"relacl"` // relacl
- Reloptions []sql.NullString `json:"reloptions"` // reloptions
- Relpartbound pgtypes.NullPgNodeTree `json:"relpartbound"` // relpartbound
- }
- // PgCollation represents a row from 'pg_catalog.pg_collation'.
- type PgCollation 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Collname string `json:"collname"` // collname
- Collnamespace pgtypes.Oid `json:"collnamespace"` // collnamespace
- Collowner pgtypes.Oid `json:"collowner"` // collowner
- Collprovider pgtypes.Char `json:"collprovider"` // collprovider
- Collisdeterministic bool `json:"collisdeterministic"` // collisdeterministic
- Collencoding int `json:"collencoding"` // collencoding
- Collcollate string `json:"collcollate"` // collcollate
- Collctype string `json:"collctype"` // collctype
- Collversion sql.NullString `json:"collversion"` // collversion
- }
- // PgConfig represents a row from 'pg_catalog.pg_config'.
- type PgConfig struct {
- Name sql.NullString `json:"name"` // name
- Setting sql.NullString `json:"setting"` // setting
- }
- // PgConstraint represents a row from 'pg_catalog.pg_constraint'.
- type PgConstraint 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Conname string `json:"conname"` // conname
- Connamespace pgtypes.Oid `json:"connamespace"` // connamespace
- Contype pgtypes.Char `json:"contype"` // contype
- Condeferrable bool `json:"condeferrable"` // condeferrable
- Condeferred bool `json:"condeferred"` // condeferred
- Convalidated bool `json:"convalidated"` // convalidated
- Conrelid pgtypes.Oid `json:"conrelid"` // conrelid
- Contypid pgtypes.Oid `json:"contypid"` // contypid
- Conindid pgtypes.Oid `json:"conindid"` // conindid
- Conparentid pgtypes.Oid `json:"conparentid"` // conparentid
- Confrelid pgtypes.Oid `json:"confrelid"` // confrelid
- Confupdtype pgtypes.Char `json:"confupdtype"` // confupdtype
- Confdeltype pgtypes.Char `json:"confdeltype"` // confdeltype
- Confmatchtype pgtypes.Char `json:"confmatchtype"` // confmatchtype
- Conislocal bool `json:"conislocal"` // conislocal
- Coninhcount int `json:"coninhcount"` // coninhcount
- Connoinherit bool `json:"connoinherit"` // connoinherit
- Conkey []sql.NullInt64 `json:"conkey"` // conkey
- Confkey []sql.NullInt64 `json:"confkey"` // confkey
- Conpfeqop []pgtypes.NullOid `json:"conpfeqop"` // conpfeqop
- Conppeqop []pgtypes.NullOid `json:"conppeqop"` // conppeqop
- Conffeqop []pgtypes.NullOid `json:"conffeqop"` // conffeqop
- Conexclop []pgtypes.NullOid `json:"conexclop"` // conexclop
- Conbin pgtypes.NullPgNodeTree `json:"conbin"` // conbin
- }
- // PgConversion represents a row from 'pg_catalog.pg_conversion'.
- type PgConversion 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Conname string `json:"conname"` // conname
- Connamespace pgtypes.Oid `json:"connamespace"` // connamespace
- Conowner pgtypes.Oid `json:"conowner"` // conowner
- Conforencoding int `json:"conforencoding"` // conforencoding
- Contoencoding int `json:"contoencoding"` // contoencoding
- Conproc pgtypes.Regproc `json:"conproc"` // conproc
- Condefault bool `json:"condefault"` // condefault
- }
- // PgCursor represents a row from 'pg_catalog.pg_cursors'.
- type PgCursor struct {
- Name sql.NullString `json:"name"` // name
- Statement sql.NullString `json:"statement"` // statement
- IsHoldable sql.NullBool `json:"is_holdable"` // is_holdable
- IsBinary sql.NullBool `json:"is_binary"` // is_binary
- IsScrollable sql.NullBool `json:"is_scrollable"` // is_scrollable
- CreationTime sql.NullTime `json:"creation_time"` // creation_time
- }
- // PgDatabase represents a row from 'pg_catalog.pg_database'.
- type PgDatabase 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Datname string `json:"datname"` // datname
- Datdba pgtypes.Oid `json:"datdba"` // datdba
- Encoding int `json:"encoding"` // encoding
- Datcollate string `json:"datcollate"` // datcollate
- Datctype string `json:"datctype"` // datctype
- Datistemplate bool `json:"datistemplate"` // datistemplate
- Datallowconn bool `json:"datallowconn"` // datallowconn
- Datconnlimit int `json:"datconnlimit"` // datconnlimit
- Datlastsysoid pgtypes.Oid `json:"datlastsysoid"` // datlastsysoid
- Datfrozenxid pgtypes.Xid `json:"datfrozenxid"` // datfrozenxid
- Datminmxid pgtypes.Xid `json:"datminmxid"` // datminmxid
- Dattablespace pgtypes.Oid `json:"dattablespace"` // dattablespace
- Datacl []pgtypes.NullAclitem `json:"datacl"` // datacl
- }
- // PgDbRoleSetting represents a row from 'pg_catalog.pg_db_role_setting'.
- type PgDbRoleSetting 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
- Setdatabase pgtypes.Oid `json:"setdatabase"` // setdatabase
- Setrole pgtypes.Oid `json:"setrole"` // setrole
- Setconfig []sql.NullString `json:"setconfig"` // setconfig
- }
- // PgDefaultACL represents a row from 'pg_catalog.pg_default_acl'.
- type PgDefaultACL 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Defaclrole pgtypes.Oid `json:"defaclrole"` // defaclrole
- Defaclnamespace pgtypes.Oid `json:"defaclnamespace"` // defaclnamespace
- Defaclobjtype pgtypes.Char `json:"defaclobjtype"` // defaclobjtype
- Defaclacl []pgtypes.Aclitem `json:"defaclacl"` // defaclacl
- }
- // PgDepend represents a row from 'pg_catalog.pg_depend'.
- type PgDepend 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
- Classid pgtypes.Oid `json:"classid"` // classid
- Objid pgtypes.Oid `json:"objid"` // objid
- Objsubid int `json:"objsubid"` // objsubid
- Refclassid pgtypes.Oid `json:"refclassid"` // refclassid
- Refobjid pgtypes.Oid `json:"refobjid"` // refobjid
- Refobjsubid int `json:"refobjsubid"` // refobjsubid
- Deptype pgtypes.Char `json:"deptype"` // deptype
- }
- // PgDescription represents a row from 'pg_catalog.pg_description'.
- type PgDescription 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
- Objoid pgtypes.Oid `json:"objoid"` // objoid
- Classoid pgtypes.Oid `json:"classoid"` // classoid
- Objsubid int `json:"objsubid"` // objsubid
- Description string `json:"description"` // description
- }
- // PgEnum represents a row from 'pg_catalog.pg_enum'.
- type PgEnum 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Enumtypid pgtypes.Oid `json:"enumtypid"` // enumtypid
- Enumsortorder float32 `json:"enumsortorder"` // enumsortorder
- Enumlabel string `json:"enumlabel"` // enumlabel
- }
- // PgEventTrigger represents a row from 'pg_catalog.pg_event_trigger'.
- type PgEventTrigger 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Evtname string `json:"evtname"` // evtname
- Evtevent string `json:"evtevent"` // evtevent
- Evtowner pgtypes.Oid `json:"evtowner"` // evtowner
- Evtfoid pgtypes.Oid `json:"evtfoid"` // evtfoid
- Evtenabled pgtypes.Char `json:"evtenabled"` // evtenabled
- Evttags []sql.NullString `json:"evttags"` // evttags
- }
- // PgExtension represents a row from 'pg_catalog.pg_extension'.
- type PgExtension 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Extname string `json:"extname"` // extname
- Extowner pgtypes.Oid `json:"extowner"` // extowner
- Extnamespace pgtypes.Oid `json:"extnamespace"` // extnamespace
- Extrelocatable bool `json:"extrelocatable"` // extrelocatable
- Extversion string `json:"extversion"` // extversion
- Extconfig []pgtypes.NullOid `json:"extconfig"` // extconfig
- Extcondition []sql.NullString `json:"extcondition"` // extcondition
- }
- // PgFileSetting represents a row from 'pg_catalog.pg_file_settings'.
- type PgFileSetting struct {
- Sourcefile sql.NullString `json:"sourcefile"` // sourcefile
- Sourceline sql.NullInt64 `json:"sourceline"` // sourceline
- Seqno sql.NullInt64 `json:"seqno"` // seqno
- Name sql.NullString `json:"name"` // name
- Setting sql.NullString `json:"setting"` // setting
- Applied sql.NullBool `json:"applied"` // applied
- Error sql.NullString `json:"error"` // error
- }
- // PgForeignDataWrapper represents a row from 'pg_catalog.pg_foreign_data_wrapper'.
- type PgForeignDataWrapper 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Fdwname string `json:"fdwname"` // fdwname
- Fdwowner pgtypes.Oid `json:"fdwowner"` // fdwowner
- Fdwhandler pgtypes.Oid `json:"fdwhandler"` // fdwhandler
- Fdwvalidator pgtypes.Oid `json:"fdwvalidator"` // fdwvalidator
- Fdwacl []pgtypes.NullAclitem `json:"fdwacl"` // fdwacl
- Fdwoptions []sql.NullString `json:"fdwoptions"` // fdwoptions
- }
- // PgForeignServer represents a row from 'pg_catalog.pg_foreign_server'.
- type PgForeignServer 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Srvname string `json:"srvname"` // srvname
- Srvowner pgtypes.Oid `json:"srvowner"` // srvowner
- Srvfdw pgtypes.Oid `json:"srvfdw"` // srvfdw
- Srvtype sql.NullString `json:"srvtype"` // srvtype
- Srvversion sql.NullString `json:"srvversion"` // srvversion
- Srvacl []pgtypes.NullAclitem `json:"srvacl"` // srvacl
- Srvoptions []sql.NullString `json:"srvoptions"` // srvoptions
- }
- // PgForeignTable represents a row from 'pg_catalog.pg_foreign_table'.
- type PgForeignTable 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
- Ftrelid pgtypes.Oid `json:"ftrelid"` // ftrelid
- Ftserver pgtypes.Oid `json:"ftserver"` // ftserver
- Ftoptions []sql.NullString `json:"ftoptions"` // ftoptions
- }
- // PgGroup represents a row from 'pg_catalog.pg_group'.
- type PgGroup struct {
- Groname sql.NullString `json:"groname"` // groname
- Grosysid pgtypes.NullOid `json:"grosysid"` // grosysid
- Grolist []pgtypes.NullOid `json:"grolist"` // grolist
- }
- // PgHbaFileRule represents a row from 'pg_catalog.pg_hba_file_rules'.
- type PgHbaFileRule struct {
- LineNumber sql.NullInt64 `json:"line_number"` // line_number
- Type sql.NullString `json:"type"` // type
- Database []sql.NullString `json:"database"` // database
- UserName []sql.NullString `json:"user_name"` // user_name
- Address sql.NullString `json:"address"` // address
- Netmask sql.NullString `json:"netmask"` // netmask
- AuthMethod sql.NullString `json:"auth_method"` // auth_method
- Options []sql.NullString `json:"options"` // options
- Error sql.NullString `json:"error"` // error
- }
- // PgIndex represents a row from 'pg_catalog.pg_indexes'.
- type PgIndex struct {
- Schemaname sql.NullString `json:"schemaname"` // schemaname
- Tablename sql.NullString `json:"tablename"` // tablename
- Indexname sql.NullString `json:"indexname"` // indexname
- Tablespace sql.NullString `json:"tablespace"` // tablespace
- Indexdef sql.NullString `json:"indexdef"` // indexdef
- }
- // PgIndex represents a row from 'pg_catalog.pg_index'.
- type PgIndex 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
- Indexrelid pgtypes.Oid `json:"indexrelid"` // indexrelid
- Indrelid pgtypes.Oid `json:"indrelid"` // indrelid
- Indnatts int16 `json:"indnatts"` // indnatts
- Indnkeyatts int16 `json:"indnkeyatts"` // indnkeyatts
- Indisunique bool `json:"indisunique"` // indisunique
- Indisprimary bool `json:"indisprimary"` // indisprimary
- Indisexclusion bool `json:"indisexclusion"` // indisexclusion
- Indimmediate bool `json:"indimmediate"` // indimmediate
- Indisclustered bool `json:"indisclustered"` // indisclustered
- Indisvalid bool `json:"indisvalid"` // indisvalid
- Indcheckxmin bool `json:"indcheckxmin"` // indcheckxmin
- Indisready bool `json:"indisready"` // indisready
- Indislive bool `json:"indislive"` // indislive
- Indisreplident bool `json:"indisreplident"` // indisreplident
- Indkey pgtypes.Int2vector `json:"indkey"` // indkey
- Indcollation pgtypes.Oidvector `json:"indcollation"` // indcollation
- Indclass pgtypes.Oidvector `json:"indclass"` // indclass
- Indoption pgtypes.Int2vector `json:"indoption"` // indoption
- Indexprs pgtypes.NullPgNodeTree `json:"indexprs"` // indexprs
- Indpred pgtypes.NullPgNodeTree `json:"indpred"` // indpred
- }
- // PgInherit represents a row from 'pg_catalog.pg_inherits'.
- type PgInherit 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
- Inhrelid pgtypes.Oid `json:"inhrelid"` // inhrelid
- Inhparent pgtypes.Oid `json:"inhparent"` // inhparent
- Inhseqno int `json:"inhseqno"` // inhseqno
- }
- // PgInitPriv represents a row from 'pg_catalog.pg_init_privs'.
- type PgInitPriv 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
- Objoid pgtypes.Oid `json:"objoid"` // objoid
- Classoid pgtypes.Oid `json:"classoid"` // classoid
- Objsubid int `json:"objsubid"` // objsubid
- Privtype pgtypes.Char `json:"privtype"` // privtype
- Initprivs []pgtypes.Aclitem `json:"initprivs"` // initprivs
- }
- // PgLanguage represents a row from 'pg_catalog.pg_language'.
- type PgLanguage 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Lanname string `json:"lanname"` // lanname
- Lanowner pgtypes.Oid `json:"lanowner"` // lanowner
- Lanispl bool `json:"lanispl"` // lanispl
- Lanpltrusted bool `json:"lanpltrusted"` // lanpltrusted
- Lanplcallfoid pgtypes.Oid `json:"lanplcallfoid"` // lanplcallfoid
- Laninline pgtypes.Oid `json:"laninline"` // laninline
- Lanvalidator pgtypes.Oid `json:"lanvalidator"` // lanvalidator
- Lanacl []pgtypes.NullAclitem `json:"lanacl"` // lanacl
- }
- // PgLargeobject represents a row from 'pg_catalog.pg_largeobject'.
- type PgLargeobject 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
- Loid pgtypes.Oid `json:"loid"` // loid
- Pageno int `json:"pageno"` // pageno
- Data []byte `json:"data"` // data
- }
- // PgLargeobjectMetadatum represents a row from 'pg_catalog.pg_largeobject_metadata'.
- type PgLargeobjectMetadatum 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Lomowner pgtypes.Oid `json:"lomowner"` // lomowner
- Lomacl []pgtypes.NullAclitem `json:"lomacl"` // lomacl
- }
- // PgLock represents a row from 'pg_catalog.pg_locks'.
- type PgLock struct {
- Locktype sql.NullString `json:"locktype"` // locktype
- Database pgtypes.NullOid `json:"database"` // database
- Relation pgtypes.NullOid `json:"relation"` // relation
- Page sql.NullInt64 `json:"page"` // page
- Tuple sql.NullInt64 `json:"tuple"` // tuple
- Virtualxid sql.NullString `json:"virtualxid"` // virtualxid
- Transactionid pgtypes.NullXid `json:"transactionid"` // transactionid
- Classid pgtypes.NullOid `json:"classid"` // classid
- Objid pgtypes.NullOid `json:"objid"` // objid
- Objsubid sql.NullInt64 `json:"objsubid"` // objsubid
- Virtualtransaction sql.NullString `json:"virtualtransaction"` // virtualtransaction
- Pid sql.NullInt64 `json:"pid"` // pid
- Mode sql.NullString `json:"mode"` // mode
- Granted sql.NullBool `json:"granted"` // granted
- Fastpath sql.NullBool `json:"fastpath"` // fastpath
- }
- // PgMatview represents a row from 'pg_catalog.pg_matviews'.
- type PgMatview struct {
- Schemaname sql.NullString `json:"schemaname"` // schemaname
- Matviewname sql.NullString `json:"matviewname"` // matviewname
- Matviewowner sql.NullString `json:"matviewowner"` // matviewowner
- Tablespace sql.NullString `json:"tablespace"` // tablespace
- Hasindexes sql.NullBool `json:"hasindexes"` // hasindexes
- Ispopulated sql.NullBool `json:"ispopulated"` // ispopulated
- Definition sql.NullString `json:"definition"` // definition
- }
- // PgNamespace represents a row from 'pg_catalog.pg_namespace'.
- type PgNamespace 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Nspname string `json:"nspname"` // nspname
- Nspowner pgtypes.Oid `json:"nspowner"` // nspowner
- Nspacl []pgtypes.NullAclitem `json:"nspacl"` // nspacl
- }
- // PgOpclass represents a row from 'pg_catalog.pg_opclass'.
- type PgOpclass 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Opcmethod pgtypes.Oid `json:"opcmethod"` // opcmethod
- Opcname string `json:"opcname"` // opcname
- Opcnamespace pgtypes.Oid `json:"opcnamespace"` // opcnamespace
- Opcowner pgtypes.Oid `json:"opcowner"` // opcowner
- Opcfamily pgtypes.Oid `json:"opcfamily"` // opcfamily
- Opcintype pgtypes.Oid `json:"opcintype"` // opcintype
- Opcdefault bool `json:"opcdefault"` // opcdefault
- Opckeytype pgtypes.Oid `json:"opckeytype"` // opckeytype
- }
- // PgOperator represents a row from 'pg_catalog.pg_operator'.
- type PgOperator 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Oprname string `json:"oprname"` // oprname
- Oprnamespace pgtypes.Oid `json:"oprnamespace"` // oprnamespace
- Oprowner pgtypes.Oid `json:"oprowner"` // oprowner
- Oprkind pgtypes.Char `json:"oprkind"` // oprkind
- Oprcanmerge bool `json:"oprcanmerge"` // oprcanmerge
- Oprcanhash bool `json:"oprcanhash"` // oprcanhash
- Oprleft pgtypes.Oid `json:"oprleft"` // oprleft
- Oprright pgtypes.Oid `json:"oprright"` // oprright
- Oprresult pgtypes.Oid `json:"oprresult"` // oprresult
- Oprcom pgtypes.Oid `json:"oprcom"` // oprcom
- Oprnegate pgtypes.Oid `json:"oprnegate"` // oprnegate
- Oprcode pgtypes.Regproc `json:"oprcode"` // oprcode
- Oprrest pgtypes.Regproc `json:"oprrest"` // oprrest
- Oprjoin pgtypes.Regproc `json:"oprjoin"` // oprjoin
- }
- // PgOpfamily represents a row from 'pg_catalog.pg_opfamily'.
- type PgOpfamily 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
- Oid pgtypes.Oid `json:"oid"` // oid
- Opfmethod pgtypes.Oid `json:"opfmethod"` // opfmethod
- Opfname string `json:"opfname"` // opfname
- Opfnamespace pgtypes.Oid `json:"opfnamespace"` // opfnamespace
- Opfowner pgtypes.Oid `json:"opfowner"` // opfowner
- }
- // PgPartitionedTable represents a row from 'pg_catalog.pg_partitioned_table'.
- type PgPartitionedTable 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
- Partrelid pgtypes.Oid `json:"partrelid"` // partrelid
- Partstrat pgtypes.Char `json:"partstrat"` // partstrat
- Partnatts int16 `json:"partnatts"` // partnatts
- Partdefid pgtypes.Oid `json:"partdefid"` // partdefid
- Partattrs pgtypes.Int2vector `json:"partattrs"` // partattrs
- Partclass pgtypes.Oidvector `json:"partclass"` // partclass
- Partcollation pgtypes.Oidvector `json:"partcollation"` // partcollation
- Partexprs pgtypes.NullPgNodeTree `json:"partexprs"` // partexprs
- }
- // PgPolicy represents a row from 'pg_catalog.pg_policies'.
- type PgPolicy struct {
- Schemaname sql.NullString `json:"schemaname"` // schemaname
- Tablename sql.NullString `json:"tablename"` // tab…
Large files files are truncated, but you can click here to view the full file