Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.FuncNode) predicate.FuncNode
- func CreatedAt(v time.Time) predicate.FuncNode
- func CreatedAtEQ(v time.Time) predicate.FuncNode
- func CreatedAtGT(v time.Time) predicate.FuncNode
- func CreatedAtGTE(v time.Time) predicate.FuncNode
- func CreatedAtIn(vs ...time.Time) predicate.FuncNode
- func CreatedAtLT(v time.Time) predicate.FuncNode
- func CreatedAtLTE(v time.Time) predicate.FuncNode
- func CreatedAtNEQ(v time.Time) predicate.FuncNode
- func CreatedAtNotIn(vs ...time.Time) predicate.FuncNode
- func ID(id int) predicate.FuncNode
- func IDEQ(id int) predicate.FuncNode
- func IDGT(id int) predicate.FuncNode
- func IDGTE(id int) predicate.FuncNode
- func IDIn(ids ...int) predicate.FuncNode
- func IDLT(id int) predicate.FuncNode
- func IDLTE(id int) predicate.FuncNode
- func IDNEQ(id int) predicate.FuncNode
- func IDNotIn(ids ...int) predicate.FuncNode
- func Key(v string) predicate.FuncNode
- func KeyContains(v string) predicate.FuncNode
- func KeyContainsFold(v string) predicate.FuncNode
- func KeyEQ(v string) predicate.FuncNode
- func KeyEqualFold(v string) predicate.FuncNode
- func KeyGT(v string) predicate.FuncNode
- func KeyGTE(v string) predicate.FuncNode
- func KeyHasPrefix(v string) predicate.FuncNode
- func KeyHasSuffix(v string) predicate.FuncNode
- func KeyIn(vs ...string) predicate.FuncNode
- func KeyLT(v string) predicate.FuncNode
- func KeyLTE(v string) predicate.FuncNode
- func KeyNEQ(v string) predicate.FuncNode
- func KeyNotIn(vs ...string) predicate.FuncNode
- func Name(v string) predicate.FuncNode
- func NameContains(v string) predicate.FuncNode
- func NameContainsFold(v string) predicate.FuncNode
- func NameEQ(v string) predicate.FuncNode
- func NameEqualFold(v string) predicate.FuncNode
- func NameGT(v string) predicate.FuncNode
- func NameGTE(v string) predicate.FuncNode
- func NameHasPrefix(v string) predicate.FuncNode
- func NameHasSuffix(v string) predicate.FuncNode
- func NameIn(vs ...string) predicate.FuncNode
- func NameLT(v string) predicate.FuncNode
- func NameLTE(v string) predicate.FuncNode
- func NameNEQ(v string) predicate.FuncNode
- func NameNotIn(vs ...string) predicate.FuncNode
- func Not(p predicate.FuncNode) predicate.FuncNode
- func Or(predicates ...predicate.FuncNode) predicate.FuncNode
- func Pkg(v string) predicate.FuncNode
- func PkgContains(v string) predicate.FuncNode
- func PkgContainsFold(v string) predicate.FuncNode
- func PkgEQ(v string) predicate.FuncNode
- func PkgEqualFold(v string) predicate.FuncNode
- func PkgGT(v string) predicate.FuncNode
- func PkgGTE(v string) predicate.FuncNode
- func PkgHasPrefix(v string) predicate.FuncNode
- func PkgHasSuffix(v string) predicate.FuncNode
- func PkgIn(vs ...string) predicate.FuncNode
- func PkgLT(v string) predicate.FuncNode
- func PkgLTE(v string) predicate.FuncNode
- func PkgNEQ(v string) predicate.FuncNode
- func PkgNotIn(vs ...string) predicate.FuncNode
- func UpdatedAt(v time.Time) predicate.FuncNode
- func UpdatedAtEQ(v time.Time) predicate.FuncNode
- func UpdatedAtGT(v time.Time) predicate.FuncNode
- func UpdatedAtGTE(v time.Time) predicate.FuncNode
- func UpdatedAtIn(vs ...time.Time) predicate.FuncNode
- func UpdatedAtLT(v time.Time) predicate.FuncNode
- func UpdatedAtLTE(v time.Time) predicate.FuncNode
- func UpdatedAtNEQ(v time.Time) predicate.FuncNode
- func UpdatedAtNotIn(vs ...time.Time) predicate.FuncNode
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKey(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPkg(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the funcnode type in the database. Label = "func_node" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKey holds the string denoting the key field in the database. FieldKey = "key" // FieldPkg holds the string denoting the pkg field in the database. FieldPkg = "pkg" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedAt holds the string denoting the createdat field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updatedat field in the database. FieldUpdatedAt = "updated_at" // Table holds the table name of the funcnode in the database. Table = "func_nodes" )
Variables ¶
var ( // KeyValidator is a validator for the "key" field. It is called by the builders before save. KeyValidator func(string) error // PkgValidator is a validator for the "pkg" field. It is called by the builders before save. PkgValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "CreatedAt" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "UpdatedAt" field. DefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldKey, FieldPkg, FieldName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for funcnode fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "CreatedAt" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "CreatedAt" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "CreatedAt" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "CreatedAt" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "CreatedAt" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "CreatedAt" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "CreatedAt" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "CreatedAt" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "CreatedAt" field.
func KeyContains ¶
KeyContains applies the Contains predicate on the "key" field.
func KeyContainsFold ¶
KeyContainsFold applies the ContainsFold predicate on the "key" field.
func KeyEqualFold ¶
KeyEqualFold applies the EqualFold predicate on the "key" field.
func KeyHasPrefix ¶
KeyHasPrefix applies the HasPrefix predicate on the "key" field.
func KeyHasSuffix ¶
KeyHasSuffix applies the HasSuffix predicate on the "key" 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 PkgContains ¶
PkgContains applies the Contains predicate on the "pkg" field.
func PkgContainsFold ¶
PkgContainsFold applies the ContainsFold predicate on the "pkg" field.
func PkgEqualFold ¶
PkgEqualFold applies the EqualFold predicate on the "pkg" field.
func PkgHasPrefix ¶
PkgHasPrefix applies the HasPrefix predicate on the "pkg" field.
func PkgHasSuffix ¶
PkgHasSuffix applies the HasSuffix predicate on the "pkg" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "UpdatedAt" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "UpdatedAt" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "UpdatedAt" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "UpdatedAt" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "UpdatedAt" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "UpdatedAt" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "UpdatedAt" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "UpdatedAt" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "UpdatedAt" 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 FuncNode queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the CreatedAt field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKey ¶
func ByKey(opts ...sql.OrderTermOption) OrderOption
ByKey orders the results by the key field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPkg ¶
func ByPkg(opts ...sql.OrderTermOption) OrderOption
ByPkg orders the results by the pkg field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the UpdatedAt field.