multiref

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Child

type Child struct {
	ChildID uuid.UUID `goen:"" table:"child" primary_key:""`

	ParentID uuid.UUID

	GroupID uuid.UUID

	Parent *Parent `foreign_key:"parent_id,group_id"`
}

type ChildColumnExpr

type ChildColumnExpr interface {
	ChildColumnExpr() string

	String() string
}

type ChildDBSet

type ChildDBSet struct {
	ChildID  _Child_ChildID
	ParentID _Child_ParentID
	GroupID  _Child_GroupID

	IncludeParent goen.IncludeLoader
	// contains filtered or unexported fields
}

func (*ChildDBSet) Delete

func (dbset *ChildDBSet) Delete(v *Child)

func (*ChildDBSet) Insert

func (dbset *ChildDBSet) Insert(v *Child)

func (*ChildDBSet) QuotedString

func (dbset *ChildDBSet) QuotedString() string

QuotedString gets quoted table name

func (*ChildDBSet) Select

func (dbset *ChildDBSet) Select() ChildQueryBuilder

func (*ChildDBSet) String

func (dbset *ChildDBSet) String() string

String gets bare table name

func (*ChildDBSet) Update

func (dbset *ChildDBSet) Update(v *Child)

type ChildOrderExpr

type ChildOrderExpr interface {
	ChildOrderExpr() string
}

type ChildQueryBuilder

type ChildQueryBuilder struct {
	// contains filtered or unexported fields
}

func (ChildQueryBuilder) Count

func (qb ChildQueryBuilder) Count() (int64, error)

func (ChildQueryBuilder) CountContext

func (qb ChildQueryBuilder) CountContext(ctx context.Context) (int64, error)

func (ChildQueryBuilder) Include

func (qb ChildQueryBuilder) Include(loaders ...goen.IncludeLoader) ChildQueryBuilder

func (ChildQueryBuilder) Limit

func (qb ChildQueryBuilder) Limit(limit uint64) ChildQueryBuilder

func (ChildQueryBuilder) Offset

func (qb ChildQueryBuilder) Offset(offset uint64) ChildQueryBuilder

func (ChildQueryBuilder) OrderBy

func (qb ChildQueryBuilder) OrderBy(orderBys ...ChildOrderExpr) ChildQueryBuilder

func (ChildQueryBuilder) Query

func (qb ChildQueryBuilder) Query() ([]*Child, error)

func (ChildQueryBuilder) QueryContext

func (qb ChildQueryBuilder) QueryContext(ctx context.Context) ([]*Child, error)

func (ChildQueryBuilder) QueryRow

func (qb ChildQueryBuilder) QueryRow() (*Child, error)

func (ChildQueryBuilder) QueryRowContext

func (qb ChildQueryBuilder) QueryRowContext(ctx context.Context) (*Child, error)

func (ChildQueryBuilder) ToSqlizer

func (qb ChildQueryBuilder) ToSqlizer(columns ...string) ChildSqlizer

ToSqlizer returns Sqlizer that built by ChildQueryBuilder with given columns. The columns defaults to all columns of Child, if columns is zero-length.

func (ChildQueryBuilder) Where

func (ChildQueryBuilder) WhereRaw

func (qb ChildQueryBuilder) WhereRaw(conds ...squirrel.Sqlizer) ChildQueryBuilder

type ChildSqlizer

type ChildSqlizer interface {
	squirrel.Sqlizer

	ChildToSql() (string, []interface{}, error)
}

type DBContext

type DBContext struct {
	*goen.DBContext

	Child *ChildDBSet

	Parent *ParentDBSet
}

func NewDBContext

func NewDBContext(dialectName string, db *sql.DB) *DBContext

func (*DBContext) UseTx

func (dbc *DBContext) UseTx(tx *sql.Tx) *DBContext

type Parent

type Parent struct {
	ParentID uuid.UUID `goen:"" table:"parent" primary_key:""`

	GroupID uuid.UUID

	Children []*Child `foreign_key:"parent_id,group_id"`
}

type ParentColumnExpr

type ParentColumnExpr interface {
	ParentColumnExpr() string

	String() string
}

type ParentDBSet

type ParentDBSet struct {
	ParentID _Parent_ParentID
	GroupID  _Parent_GroupID

	IncludeChildren goen.IncludeLoader
	// contains filtered or unexported fields
}

func (*ParentDBSet) Delete

func (dbset *ParentDBSet) Delete(v *Parent)

func (*ParentDBSet) Insert

func (dbset *ParentDBSet) Insert(v *Parent)

func (*ParentDBSet) QuotedString

func (dbset *ParentDBSet) QuotedString() string

QuotedString gets quoted table name

func (*ParentDBSet) Select

func (dbset *ParentDBSet) Select() ParentQueryBuilder

func (*ParentDBSet) String

func (dbset *ParentDBSet) String() string

String gets bare table name

func (*ParentDBSet) Update

func (dbset *ParentDBSet) Update(v *Parent)

type ParentOrderExpr

type ParentOrderExpr interface {
	ParentOrderExpr() string
}

type ParentQueryBuilder

type ParentQueryBuilder struct {
	// contains filtered or unexported fields
}

func (ParentQueryBuilder) Count

func (qb ParentQueryBuilder) Count() (int64, error)

func (ParentQueryBuilder) CountContext

func (qb ParentQueryBuilder) CountContext(ctx context.Context) (int64, error)

func (ParentQueryBuilder) Include

func (ParentQueryBuilder) Limit

func (ParentQueryBuilder) Offset

func (qb ParentQueryBuilder) Offset(offset uint64) ParentQueryBuilder

func (ParentQueryBuilder) OrderBy

func (qb ParentQueryBuilder) OrderBy(orderBys ...ParentOrderExpr) ParentQueryBuilder

func (ParentQueryBuilder) Query

func (qb ParentQueryBuilder) Query() ([]*Parent, error)

func (ParentQueryBuilder) QueryContext

func (qb ParentQueryBuilder) QueryContext(ctx context.Context) ([]*Parent, error)

func (ParentQueryBuilder) QueryRow

func (qb ParentQueryBuilder) QueryRow() (*Parent, error)

func (ParentQueryBuilder) QueryRowContext

func (qb ParentQueryBuilder) QueryRowContext(ctx context.Context) (*Parent, error)

func (ParentQueryBuilder) ToSqlizer

func (qb ParentQueryBuilder) ToSqlizer(columns ...string) ParentSqlizer

ToSqlizer returns Sqlizer that built by ParentQueryBuilder with given columns. The columns defaults to all columns of Parent, if columns is zero-length.

func (ParentQueryBuilder) Where

func (ParentQueryBuilder) WhereRaw

func (qb ParentQueryBuilder) WhereRaw(conds ...squirrel.Sqlizer) ParentQueryBuilder

type ParentSqlizer

type ParentSqlizer interface {
	squirrel.Sqlizer

	ParentToSql() (string, []interface{}, error)
}

Jump to

Keyboard shortcuts

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