Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tree) predicate.Tree
- func Dir(v string) predicate.Tree
- func DirContains(v string) predicate.Tree
- func DirContainsFold(v string) predicate.Tree
- func DirEQ(v string) predicate.Tree
- func DirEqualFold(v string) predicate.Tree
- func DirGT(v string) predicate.Tree
- func DirGTE(v string) predicate.Tree
- func DirHasPrefix(v string) predicate.Tree
- func DirHasSuffix(v string) predicate.Tree
- func DirIn(vs ...string) predicate.Tree
- func DirLT(v string) predicate.Tree
- func DirLTE(v string) predicate.Tree
- func DirNEQ(v string) predicate.Tree
- func DirNotIn(vs ...string) predicate.Tree
- func HasSet() predicate.Tree
- func HasSetWith(preds ...predicate.Set) predicate.Tree
- func ID(id int) predicate.Tree
- func IDEQ(id int) predicate.Tree
- func IDGT(id int) predicate.Tree
- func IDGTE(id int) predicate.Tree
- func IDIn(ids ...int) predicate.Tree
- func IDLT(id int) predicate.Tree
- func IDLTE(id int) predicate.Tree
- func IDNEQ(id int) predicate.Tree
- func IDNotIn(ids ...int) predicate.Tree
- func Not(p predicate.Tree) predicate.Tree
- func Or(predicates ...predicate.Tree) predicate.Tree
- func Path(v string) predicate.Tree
- func PathContains(v string) predicate.Tree
- func PathContainsFold(v string) predicate.Tree
- func PathEQ(v string) predicate.Tree
- func PathEqualFold(v string) predicate.Tree
- func PathGT(v string) predicate.Tree
- func PathGTE(v string) predicate.Tree
- func PathHasPrefix(v string) predicate.Tree
- func PathHasSuffix(v string) predicate.Tree
- func PathIn(vs ...string) predicate.Tree
- func PathLT(v string) predicate.Tree
- func PathLTE(v string) predicate.Tree
- func PathNEQ(v string) predicate.Tree
- func PathNotIn(vs ...string) predicate.Tree
- func Ref(v []byte) predicate.Tree
- func RefEQ(v []byte) predicate.Tree
- func RefGT(v []byte) predicate.Tree
- func RefGTE(v []byte) predicate.Tree
- func RefIn(vs ...[]byte) predicate.Tree
- func RefLT(v []byte) predicate.Tree
- func RefLTE(v []byte) predicate.Tree
- func RefNEQ(v []byte) predicate.Tree
- func RefNotIn(vs ...[]byte) predicate.Tree
- func SetID(v int64) predicate.Tree
- func SetIDEQ(v int64) predicate.Tree
- func SetIDIn(vs ...int64) predicate.Tree
- func SetIDNEQ(v int64) predicate.Tree
- func SetIDNotIn(vs ...int64) predicate.Tree
- func ValidColumn(column string) bool
- func ValidFrom(v time.Time) predicate.Tree
- func ValidFromEQ(v time.Time) predicate.Tree
- func ValidFromGT(v time.Time) predicate.Tree
- func ValidFromGTE(v time.Time) predicate.Tree
- func ValidFromIn(vs ...time.Time) predicate.Tree
- func ValidFromLT(v time.Time) predicate.Tree
- func ValidFromLTE(v time.Time) predicate.Tree
- func ValidFromNEQ(v time.Time) predicate.Tree
- func ValidFromNotIn(vs ...time.Time) predicate.Tree
- func ValidUntil(v time.Time) predicate.Tree
- func ValidUntilEQ(v time.Time) predicate.Tree
- func ValidUntilGT(v time.Time) predicate.Tree
- func ValidUntilGTE(v time.Time) predicate.Tree
- func ValidUntilIn(vs ...time.Time) predicate.Tree
- func ValidUntilIsNil() predicate.Tree
- func ValidUntilLT(v time.Time) predicate.Tree
- func ValidUntilLTE(v time.Time) predicate.Tree
- func ValidUntilNEQ(v time.Time) predicate.Tree
- func ValidUntilNotIn(vs ...time.Time) predicate.Tree
- func ValidUntilNotNil() predicate.Tree
- type OrderOption
- func ByDir(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func BySetField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySetID(opts ...sql.OrderTermOption) OrderOption
- func ByValidFrom(opts ...sql.OrderTermOption) OrderOption
- func ByValidUntil(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the tree type in the database. Label = "tree" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSetID holds the string denoting the set_id field in the database. FieldSetID = "set_id" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldDir holds the string denoting the dir field in the database. FieldDir = "dir" // FieldValidFrom holds the string denoting the valid_from field in the database. FieldValidFrom = "valid_from" // FieldValidUntil holds the string denoting the valid_until field in the database. FieldValidUntil = "valid_until" // FieldRef holds the string denoting the ref field in the database. FieldRef = "ref" // EdgeSet holds the string denoting the set edge name in mutations. EdgeSet = "set" // Table holds the table name of the tree in the database. Table = "trees" // SetTable is the table that holds the set relation/edge. SetTable = "trees" // SetInverseTable is the table name for the Set entity. // It exists in this package in order to avoid circular dependency with the "set" package. SetInverseTable = "sets" // SetColumn is the table column denoting the set relation/edge. SetColumn = "set_id" )
Variables ¶
var Columns = []string{ FieldID, FieldSetID, FieldPath, FieldDir, FieldValidFrom, FieldValidUntil, FieldRef, }
Columns holds all SQL columns for tree fields.
Functions ¶
func DirContains ¶
DirContains applies the Contains predicate on the "dir" field.
func DirContainsFold ¶
DirContainsFold applies the ContainsFold predicate on the "dir" field.
func DirEqualFold ¶
DirEqualFold applies the EqualFold predicate on the "dir" field.
func DirHasPrefix ¶
DirHasPrefix applies the HasPrefix predicate on the "dir" field.
func DirHasSuffix ¶
DirHasSuffix applies the HasSuffix predicate on the "dir" field.
func HasSetWith ¶
HasSetWith applies the HasEdge predicate on the "set" edge with a given conditions (other predicates).
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func SetID ¶
SetID applies equality check predicate on the "set_id" field. It's identical to SetIDEQ.
func SetIDNotIn ¶
SetIDNotIn applies the NotIn predicate on the "set_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func ValidFrom ¶
ValidFrom applies equality check predicate on the "valid_from" field. It's identical to ValidFromEQ.
func ValidFromEQ ¶
ValidFromEQ applies the EQ predicate on the "valid_from" field.
func ValidFromGT ¶
ValidFromGT applies the GT predicate on the "valid_from" field.
func ValidFromGTE ¶
ValidFromGTE applies the GTE predicate on the "valid_from" field.
func ValidFromIn ¶
ValidFromIn applies the In predicate on the "valid_from" field.
func ValidFromLT ¶
ValidFromLT applies the LT predicate on the "valid_from" field.
func ValidFromLTE ¶
ValidFromLTE applies the LTE predicate on the "valid_from" field.
func ValidFromNEQ ¶
ValidFromNEQ applies the NEQ predicate on the "valid_from" field.
func ValidFromNotIn ¶
ValidFromNotIn applies the NotIn predicate on the "valid_from" field.
func ValidUntil ¶
ValidUntil applies equality check predicate on the "valid_until" field. It's identical to ValidUntilEQ.
func ValidUntilEQ ¶
ValidUntilEQ applies the EQ predicate on the "valid_until" field.
func ValidUntilGT ¶
ValidUntilGT applies the GT predicate on the "valid_until" field.
func ValidUntilGTE ¶
ValidUntilGTE applies the GTE predicate on the "valid_until" field.
func ValidUntilIn ¶
ValidUntilIn applies the In predicate on the "valid_until" field.
func ValidUntilIsNil ¶
ValidUntilIsNil applies the IsNil predicate on the "valid_until" field.
func ValidUntilLT ¶
ValidUntilLT applies the LT predicate on the "valid_until" field.
func ValidUntilLTE ¶
ValidUntilLTE applies the LTE predicate on the "valid_until" field.
func ValidUntilNEQ ¶
ValidUntilNEQ applies the NEQ predicate on the "valid_until" field.
func ValidUntilNotIn ¶
ValidUntilNotIn applies the NotIn predicate on the "valid_until" field.
func ValidUntilNotNil ¶
ValidUntilNotNil applies the NotNil predicate on the "valid_until" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Tree queries.
func ByDir ¶
func ByDir(opts ...sql.OrderTermOption) OrderOption
ByDir orders the results by the dir field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func BySetField ¶
func BySetField(field string, opts ...sql.OrderTermOption) OrderOption
BySetField orders the results by set field.
func BySetID ¶
func BySetID(opts ...sql.OrderTermOption) OrderOption
BySetID orders the results by the set_id field.
func ByValidFrom ¶
func ByValidFrom(opts ...sql.OrderTermOption) OrderOption
ByValidFrom orders the results by the valid_from field.
func ByValidUntil ¶
func ByValidUntil(opts ...sql.OrderTermOption) OrderOption
ByValidUntil orders the results by the valid_until field.