model

package
v0.0.0-...-b5dfc24 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColSchema

type ColSchema struct {
	TableName         string `sql:"-"`
	StructColumnName  string `sql:"-"`
	ColumnName        string `sql:"column_name"`
	ColumnDefault     string `sql:"column_default"`
	DataType          string `sql:"data_type"`
	UdtName           string `sql:"udt_name"`
	IsNullable        string `sql:"is_nullable"`
	CharMaxLen        string `sql:"character_maximum_length"`
	ConstraintType    string `sql:"constraint_type"`
	ConstraintName    string `sql:"constraint_name"`
	IsDeferrable      string `sql:"is_deferrable"`
	InitiallyDeferred string `sql:"initially_deferred"`
	ForeignTableName  string `sql:"foreign_table_name"`
	ForeignColumnName string `sql:"foreign_column_name"`
	UpdateType        string `sql:"confupdtype"`
	DeleteType        string `sql:"confdeltype"`
	SeqName           string `sql:"seq_name"`
	SeqDataType       string `sql:"seq_data_type"`
	Position          int    `sql:"position"`
	IsFkUnique        bool   `sql:"-"`
	FkUniqueName      string `sql:"-"`
	DefaultExists     bool   `sql:"-"`
}

ColSchema : Table Column Schema Model

type Index

type Index struct {
	IdxName string `sql:"index_name"`
	IType   string `sql:"itype"`
	Columns string `sql:"col"`
}

Index model

type UKSchema

type UKSchema struct {
	ConstraintName string `sql:"conname"`
	Columns        string `sql:"col"`
}

UKSchema : Unique Schema Model

Jump to

Keyboard shortcuts

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