pgmodel

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnsType

type ColumnsType struct {
	ColumnName             qb.Field
	TableSchema            qb.Field
	TableName              qb.Field
	CharacterMaximumLength qb.Field
	// contains filtered or unexported fields
}

ColumnsType represents the table "Columns"

func Columns

func Columns() *ColumnsType

Columns returns a new ColumnsType

func (*ColumnsType) Delete

func (t *ColumnsType) Delete(c1 qb.Condition, c ...qb.Condition) qb.Query

Delete creates a DELETE query

func (*ColumnsType) GetTable

func (t *ColumnsType) GetTable() *qb.Table

GetTable returns an object with info about the table

func (*ColumnsType) Insert

func (t *ColumnsType) Insert(f ...qb.Field) *qb.InsertBuilder

Insert starts an INSERT query

func (*ColumnsType) Select

func (t *ColumnsType) Select(f ...qb.Field) *qb.SelectBuilder

Select starts a SELECT query

func (*ColumnsType) Update

func (t *ColumnsType) Update() *qb.UpdateBuilder

Update starts an UPDATE query

type PgAttributeType

type PgAttributeType struct {
	Attname      qb.Field
	Atttypid     qb.Field
	Attlen       qb.Field
	Atttypmod    qb.Field
	Attrelid     qb.Field
	Attnotnull   qb.Field
	Attnum       qb.Field
	Attisdropped qb.Field
	// contains filtered or unexported fields
}

PgAttributeType represents the table "PgAttribute"

func PgAttribute

func PgAttribute() *PgAttributeType

PgAttribute returns a new PgAttributeType

func (*PgAttributeType) Delete

func (t *PgAttributeType) Delete(c1 qb.Condition, c ...qb.Condition) qb.Query

Delete creates a DELETE query

func (*PgAttributeType) GetTable

func (t *PgAttributeType) GetTable() *qb.Table

GetTable returns an object with info about the table

func (*PgAttributeType) Insert

func (t *PgAttributeType) Insert(f ...qb.Field) *qb.InsertBuilder

Insert starts an INSERT query

func (*PgAttributeType) Select

func (t *PgAttributeType) Select(f ...qb.Field) *qb.SelectBuilder

Select starts a SELECT query

func (*PgAttributeType) Update

func (t *PgAttributeType) Update() *qb.UpdateBuilder

Update starts an UPDATE query

type TablesType

type TablesType struct {
	TableName   qb.Field
	TableSchema qb.Field
	// contains filtered or unexported fields
}

TablesType represents the table "Tables"

func Tables

func Tables() *TablesType

Tables returns a new TablesType

func (*TablesType) Delete

func (t *TablesType) Delete(c1 qb.Condition, c ...qb.Condition) qb.Query

Delete creates a DELETE query

func (*TablesType) GetTable

func (t *TablesType) GetTable() *qb.Table

GetTable returns an object with info about the table

func (*TablesType) Insert

func (t *TablesType) Insert(f ...qb.Field) *qb.InsertBuilder

Insert starts an INSERT query

func (*TablesType) Select

func (t *TablesType) Select(f ...qb.Field) *qb.SelectBuilder

Select starts a SELECT query

func (*TablesType) Update

func (t *TablesType) Update() *qb.UpdateBuilder

Update starts an UPDATE query

Jump to

Keyboard shortcuts

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