Documentation
¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.Node
- func AddressContains(v string) predicate.Node
- func AddressContainsFold(v string) predicate.Node
- func AddressEQ(v string) predicate.Node
- func AddressEqualFold(v string) predicate.Node
- func AddressGT(v string) predicate.Node
- func AddressGTE(v string) predicate.Node
- func AddressHasPrefix(v string) predicate.Node
- func AddressHasSuffix(v string) predicate.Node
- func AddressIn(vs ...string) predicate.Node
- func AddressLT(v string) predicate.Node
- func AddressLTE(v string) predicate.Node
- func AddressNEQ(v string) predicate.Node
- func AddressNotIn(vs ...string) predicate.Node
- func And(predicates ...predicate.Node) predicate.Node
- func CreatedAt(v int64) predicate.Node
- func CreatedAtEQ(v int64) predicate.Node
- func CreatedAtGT(v int64) predicate.Node
- func CreatedAtGTE(v int64) predicate.Node
- func CreatedAtIn(vs ...int64) predicate.Node
- func CreatedAtLT(v int64) predicate.Node
- func CreatedAtLTE(v int64) predicate.Node
- func CreatedAtNEQ(v int64) predicate.Node
- func CreatedAtNotIn(vs ...int64) predicate.Node
- func HasContainers() predicate.Node
- func HasContainersWith(preds ...predicate.Container) predicate.Node
- func ID(id int) predicate.Node
- func IDEQ(id int) predicate.Node
- func IDGT(id int) predicate.Node
- func IDGTE(id int) predicate.Node
- func IDIn(ids ...int) predicate.Node
- func IDLT(id int) predicate.Node
- func IDLTE(id int) predicate.Node
- func IDNEQ(id int) predicate.Node
- func IDNotIn(ids ...int) predicate.Node
- func Name(v string) predicate.Node
- func NameContains(v string) predicate.Node
- func NameContainsFold(v string) predicate.Node
- func NameEQ(v string) predicate.Node
- func NameEqualFold(v string) predicate.Node
- func NameGT(v string) predicate.Node
- func NameGTE(v string) predicate.Node
- func NameHasPrefix(v string) predicate.Node
- func NameHasSuffix(v string) predicate.Node
- func NameIn(vs ...string) predicate.Node
- func NameLT(v string) predicate.Node
- func NameLTE(v string) predicate.Node
- func NameNEQ(v string) predicate.Node
- func NameNotIn(vs ...string) predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Note(v string) predicate.Node
- func NoteContains(v string) predicate.Node
- func NoteContainsFold(v string) predicate.Node
- func NoteEQ(v string) predicate.Node
- func NoteEqualFold(v string) predicate.Node
- func NoteGT(v string) predicate.Node
- func NoteGTE(v string) predicate.Node
- func NoteHasPrefix(v string) predicate.Node
- func NoteHasSuffix(v string) predicate.Node
- func NoteIn(vs ...string) predicate.Node
- func NoteLT(v string) predicate.Node
- func NoteLTE(v string) predicate.Node
- func NoteNEQ(v string) predicate.Node
- func NoteNotIn(vs ...string) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func UID(v string) predicate.Node
- func UIDContains(v string) predicate.Node
- func UIDContainsFold(v string) predicate.Node
- func UIDEQ(v string) predicate.Node
- func UIDEqualFold(v string) predicate.Node
- func UIDGT(v string) predicate.Node
- func UIDGTE(v string) predicate.Node
- func UIDHasPrefix(v string) predicate.Node
- func UIDHasSuffix(v string) predicate.Node
- func UIDIn(vs ...string) predicate.Node
- func UIDLT(v string) predicate.Node
- func UIDLTE(v string) predicate.Node
- func UIDNEQ(v string) predicate.Node
- func UIDNotIn(vs ...string) predicate.Node
- func UpdatedAt(v int64) predicate.Node
- func UpdatedAtEQ(v int64) predicate.Node
- func UpdatedAtGT(v int64) predicate.Node
- func UpdatedAtGTE(v int64) predicate.Node
- func UpdatedAtIn(vs ...int64) predicate.Node
- func UpdatedAtLT(v int64) predicate.Node
- func UpdatedAtLTE(v int64) predicate.Node
- func UpdatedAtNEQ(v int64) predicate.Node
- func UpdatedAtNotIn(vs ...int64) predicate.Node
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddress(opts ...sql.OrderTermOption) OrderOption
- func ByContainers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContainersCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByUID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the node type in the database. Label = "node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeContainers holds the string denoting the containers edge name in mutations. EdgeContainers = "containers" // Table holds the table name of the node in the database. Table = "nodes" // ContainersTable is the table that holds the containers relation/edge. The primary key declared below. ContainersTable = "node_containers" // ContainersInverseTable is the table name for the Container entity. // It exists in this package in order to avoid circular dependency with the "container" package. ContainersInverseTable = "containers" )
Variables ¶
var ( // DefaultUID holds the default value on creation for the "uid" field. DefaultUID func() string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() int64 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() int64 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() int64 )
var Columns = []string{ FieldID, FieldUID, FieldName, FieldAddress, FieldNote, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for node fields.
var ( // ContainersPrimaryKey and ContainersColumn2 are the table columns denoting the // primary key for the containers relation (M2M). ContainersPrimaryKey = []string{"node_id", "container_id"} )
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasContainers ¶
HasContainers applies the HasEdge predicate on the "containers" edge.
func HasContainersWith ¶
HasContainersWith applies the HasEdge predicate on the "containers" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NoteContains ¶
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEqualFold ¶
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteHasPrefix ¶
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func UIDContains ¶
UIDContains applies the Contains predicate on the "uid" field.
func UIDContainsFold ¶
UIDContainsFold applies the ContainsFold predicate on the "uid" field.
func UIDEqualFold ¶
UIDEqualFold applies the EqualFold predicate on the "uid" field.
func UIDHasPrefix ¶
UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
func UIDHasSuffix ¶
UIDHasSuffix applies the HasSuffix predicate on the "uid" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Node queries.
func ByAddress ¶
func ByAddress(opts ...sql.OrderTermOption) OrderOption
ByAddress orders the results by the address field.
func ByContainers ¶
func ByContainers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByContainers orders the results by containers terms.
func ByContainersCount ¶
func ByContainersCount(opts ...sql.OrderTermOption) OrderOption
ByContainersCount orders the results by containers count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.
func ByUID ¶
func ByUID(opts ...sql.OrderTermOption) OrderOption
ByUID orders the results by the uid field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.