postgres

package
v0.0.0-...-fe5a163 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColumnsObjs _ColumnsObjs
View Source
var KeyColumnUsageObjs _KeyColumnUsageObjs
View Source
var TableConstraintsObjs _TableConstraintsObjs

Functions

This section is empty.

Types

type Columns

type Columns struct {
	TableCatalog           string `json:"table_catalog"`
	TableSchema            string `json:"table_schema"`
	TableName              string `json:"table_name"`
	ColumnName             string `json:"column_name"`
	OrdinalPosition        int    `json:"ordinal_position"`
	ColumnDefault          string `json:"column_default"`
	IsNullable             string `json:"is_nullable"`
	DataType               string `json:"data_type"`
	CharacterMaximumLength int    `json:"character_maximum_length"`
	CharacterOctetLength   int    `json:"character_octet_length"`
	NumericPrecision       int    `json:"numeric_precision"`
	NumericPrecisionRadix  int    `json:"numeric_precision_radix"`
	NumericScale           int    `json:"numeric_scale"`
	DatetimePrecision      int    `json:"datetime_precision"`
	IntervalType           string `json:"interval_type"`
	IntervalPrecision      int    `json:"interval_precision"`
	CharacterSetCatalog    string `json:"character_set_catalog"`
	CharacterSetSchema     string `json:"character_set_schema"`
	CharacterSetName       string `json:"character_set_name"`
	CollationCatalog       string `json:"collation_catalog"`
	CollationSchema        string `json:"collation_schema"`
	CollationName          string `json:"collation_name"`
	DomainCatalog          string `json:"domain_catalog"`
	DomainSchema           string `json:"domain_schema"`
	DomainName             string `json:"domain_name"`
	UdtCatalog             string `json:"udt_catalog"`
	UdtSchema              string `json:"udt_schema"`
	UdtName                string `json:"udt_name"`
	ScopeCatalog           string `json:"scope_catalog"`
	ScopeSchema            string `json:"scope_schema"`
	ScopeName              string `json:"scope_name"`
	MaximumCardinality     int    `json:"maximum_cardinality"`
	DtdIdentifier          string `json:"dtd_identifier"`
	IsSelfReferencing      string `json:"is_self_referencing"`
	IsIdentity             string `json:"is_identity"`
	IdentityGeneration     string `json:"identity_generation"`
	IdentityStart          string `json:"identity_start"`
	IdentityIncrement      string `json:"identity_increment"`
	IdentityMaximum        string `json:"identity_maximum"`
	IdentityMinimum        string `json:"identity_minimum"`
	IdentityCycle          string `json:"identity_cycle"`
	IsGenerated            string `json:"is_generated"`
	GenerationExpression   string `json:"generation_expression"`
	IsUpdatable            string `json:"is_updatable"`
}

func (Columns) Delete

func (obj Columns) Delete(dbtx gmq.DbTx) (int64, error)

func (Columns) Insert

func (obj Columns) Insert(dbtx gmq.DbTx) (Columns, error)

func (Columns) String

func (obj Columns) String() string

func (Columns) Update

func (obj Columns) Update(dbtx gmq.DbTx) (int64, error)

type ColumnsRowVisitor

type ColumnsRowVisitor func(obj Columns) bool

type KeyColumnUsage

type KeyColumnUsage struct {
	ConstraintCatalog          string `json:"constraint_catalog"`
	ConstraintSchema           string `json:"constraint_schema"`
	ConstraintName             string `json:"constraint_name"`
	TableCatalog               string `json:"table_catalog"`
	TableSchema                string `json:"table_schema"`
	TableName                  string `json:"table_name"`
	ColumnName                 string `json:"column_name"`
	OrdinalPosition            int    `json:"ordinal_position"`
	PositionInUniqueConstraint int    `json:"position_in_unique_constraint"`
}

func (KeyColumnUsage) Delete

func (obj KeyColumnUsage) Delete(dbtx gmq.DbTx) (int64, error)

func (KeyColumnUsage) Insert

func (obj KeyColumnUsage) Insert(dbtx gmq.DbTx) (KeyColumnUsage, error)

func (KeyColumnUsage) String

func (obj KeyColumnUsage) String() string

func (KeyColumnUsage) Update

func (obj KeyColumnUsage) Update(dbtx gmq.DbTx) (int64, error)

type KeyColumnUsageRowVisitor

type KeyColumnUsageRowVisitor func(obj KeyColumnUsage) bool

type TableConstraints

type TableConstraints struct {
	ConstraintCatalog string `json:"constraint_catalog"`
	ConstraintSchema  string `json:"constraint_schema"`
	ConstraintName    string `json:"constraint_name"`
	TableCatalog      string `json:"table_catalog"`
	TableSchema       string `json:"table_schema"`
	TableName         string `json:"table_name"`
	ConstraintType    string `json:"constraint_type"`
	IsDeferrable      string `json:"is_deferrable"`
	InitiallyDeferred string `json:"initially_deferred"`
}

func (TableConstraints) Delete

func (obj TableConstraints) Delete(dbtx gmq.DbTx) (int64, error)

func (TableConstraints) Insert

func (obj TableConstraints) Insert(dbtx gmq.DbTx) (TableConstraints, error)

func (TableConstraints) String

func (obj TableConstraints) String() string

func (TableConstraints) Update

func (obj TableConstraints) Update(dbtx gmq.DbTx) (int64, error)

type TableConstraintsRowVisitor

type TableConstraintsRowVisitor func(obj TableConstraints) bool

Jump to

Keyboard shortcuts

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