model

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 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 OneType

type OneType struct {
	ID        qb.Field
	Name      qb.Field
	CreatedAt qb.Field
	// contains filtered or unexported fields
}

OneType represents the table "One"

func One

func One() *OneType

One returns a new OneType

func (*OneType) Delete

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

Delete creates a DELETE query

func (*OneType) GetTable

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

GetTable returns an object with info about the table

func (*OneType) Insert

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

Insert starts an INSERT query

func (*OneType) Select

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

Select starts a SELECT query

func (*OneType) Update

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

Update starts an UPDATE query

type TwoType

type TwoType struct {
	OneID      qb.Field
	Number     qb.Field
	Comment    qb.Field
	ModifiedAt qb.Field
	// contains filtered or unexported fields
}

TwoType represents the table "Two"

func Two

func Two() *TwoType

Two returns a new TwoType

func (*TwoType) Delete

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

Delete creates a DELETE query

func (*TwoType) GetTable

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

GetTable returns an object with info about the table

func (*TwoType) Insert

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

Insert starts an INSERT query

func (*TwoType) Select

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

Select starts a SELECT query

func (*TwoType) Update

func (t *TwoType) 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