intsid

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the intsid type in the database.
	Label = "int_sid"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// Table holds the table name of the intsid in the database.
	Table = "int_si_ds"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "int_si_ds"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "int_sid_parent"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "int_si_ds"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "int_sid_parent"
)

Variables

View Source
var Columns = []string{
	FieldID,
}

Columns holds all SQL columns for intsid fields.

View Source
var ForeignKeys = []string{
	"int_sid_parent",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "int_si_ds" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.IntSID) predicate.IntSID

And groups predicates with the AND operator between them.

func HasChildren

func HasChildren() predicate.IntSID

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.IntSID) predicate.IntSID

HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).

func HasParent

func HasParent() predicate.IntSID

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.IntSID) predicate.IntSID

HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).

func ID

func ID(id sid.ID) predicate.IntSID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id sid.ID) predicate.IntSID

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id sid.ID) predicate.IntSID

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id sid.ID) predicate.IntSID

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...sid.ID) predicate.IntSID

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id sid.ID) predicate.IntSID

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id sid.ID) predicate.IntSID

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id sid.ID) predicate.IntSID

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...sid.ID) predicate.IntSID

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IntSID) predicate.IntSID

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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