Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Node) predicate.Node
- func Comment(v string) predicate.Node
- func CommentContains(v string) predicate.Node
- func CommentContainsFold(v string) predicate.Node
- func CommentEQ(v string) predicate.Node
- func CommentEqualFold(v string) predicate.Node
- func CommentGT(v string) predicate.Node
- func CommentGTE(v string) predicate.Node
- func CommentHasPrefix(v string) predicate.Node
- func CommentHasSuffix(v string) predicate.Node
- func CommentIn(vs ...string) predicate.Node
- func CommentIsNil() predicate.Node
- func CommentLT(v string) predicate.Node
- func CommentLTE(v string) predicate.Node
- func CommentNEQ(v string) predicate.Node
- func CommentNotIn(vs ...string) predicate.Node
- func CommentNotNil() predicate.Node
- func CreatedAt(v time.Time) predicate.Node
- func CreatedAtEQ(v time.Time) predicate.Node
- func CreatedAtGT(v time.Time) predicate.Node
- func CreatedAtGTE(v time.Time) predicate.Node
- func CreatedAtIn(vs ...time.Time) predicate.Node
- func CreatedAtLT(v time.Time) predicate.Node
- func CreatedAtLTE(v time.Time) predicate.Node
- func CreatedAtNEQ(v time.Time) predicate.Node
- func CreatedAtNotIn(vs ...time.Time) predicate.Node
- func ID(id string) predicate.Node
- func IDContainsFold(id string) predicate.Node
- func IDEQ(id string) predicate.Node
- func IDEqualFold(id string) predicate.Node
- func IDGT(id string) predicate.Node
- func IDGTE(id string) predicate.Node
- func IDIn(ids ...string) predicate.Node
- func IDLT(id string) predicate.Node
- func IDLTE(id string) predicate.Node
- func IDNEQ(id string) predicate.Node
- func IDNotIn(ids ...string) predicate.Node
- func IP(v string) predicate.Node
- func IPContains(v string) predicate.Node
- func IPContainsFold(v string) predicate.Node
- func IPEQ(v string) predicate.Node
- func IPEqualFold(v string) predicate.Node
- func IPGT(v string) predicate.Node
- func IPGTE(v string) predicate.Node
- func IPHasPrefix(v string) predicate.Node
- func IPHasSuffix(v string) predicate.Node
- func IPIn(vs ...string) predicate.Node
- func IPLT(v string) predicate.Node
- func IPLTE(v string) predicate.Node
- func IPNEQ(v string) predicate.Node
- func IPNotIn(vs ...string) 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 NameIsNil() 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 NameNotNil() predicate.Node
- func Not(p predicate.Node) predicate.Node
- func Or(predicates ...predicate.Node) predicate.Node
- func Port(v int) predicate.Node
- func PortEQ(v int) predicate.Node
- func PortGT(v int) predicate.Node
- func PortGTE(v int) predicate.Node
- func PortIn(vs ...int) predicate.Node
- func PortLT(v int) predicate.Node
- func PortLTE(v int) predicate.Node
- func PortNEQ(v int) predicate.Node
- func PortNotIn(vs ...int) predicate.Node
- func UpdatedAt(v time.Time) predicate.Node
- func UpdatedAtEQ(v time.Time) predicate.Node
- func UpdatedAtGT(v time.Time) predicate.Node
- func UpdatedAtGTE(v time.Time) predicate.Node
- func UpdatedAtIn(vs ...time.Time) predicate.Node
- func UpdatedAtLT(v time.Time) predicate.Node
- func UpdatedAtLTE(v time.Time) predicate.Node
- func UpdatedAtNEQ(v time.Time) predicate.Node
- func UpdatedAtNotIn(vs ...time.Time) predicate.Node
- func ValidColumn(column string) bool
- type OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIP(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPort(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" // 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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldIP holds the string denoting the ip field in the database. FieldIP = "ip" // FieldPort holds the string denoting the port field in the database. FieldPort = "port" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // Table holds the table name of the node in the database. Table = "nodes" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultPort holds the default value on creation for the "port" field. DefaultPort int // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldIP, FieldPort, FieldComment, }
Columns holds all SQL columns for node fields.
Functions ¶
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" 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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func IPContains ¶
IPContains applies the Contains predicate on the "ip" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "ip" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "ip" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "ip" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "ip" field.
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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" 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 ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
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 ByIP ¶
func ByIP(opts ...sql.OrderTermOption) OrderOption
ByIP orders the results by the ip field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPort ¶
func ByPort(opts ...sql.OrderTermOption) OrderOption
ByPort orders the results by the port field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.