funcnode

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for funcnode fields.

Functions

func And

func And(predicates ...predicate.FuncNode) predicate.FuncNode

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.FuncNode

CreatedAt applies equality check predicate on the "CreatedAt" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.FuncNode

CreatedAtEQ applies the EQ predicate on the "CreatedAt" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.FuncNode

CreatedAtGT applies the GT predicate on the "CreatedAt" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.FuncNode

CreatedAtGTE applies the GTE predicate on the "CreatedAt" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.FuncNode

CreatedAtIn applies the In predicate on the "CreatedAt" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.FuncNode

CreatedAtLT applies the LT predicate on the "CreatedAt" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.FuncNode

CreatedAtLTE applies the LTE predicate on the "CreatedAt" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.FuncNode

CreatedAtNEQ applies the NEQ predicate on the "CreatedAt" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.FuncNode

CreatedAtNotIn applies the NotIn predicate on the "CreatedAt" field.

func ID

func ID(id int) predicate.FuncNode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.FuncNode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.FuncNode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.FuncNode

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.FuncNode

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.FuncNode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.FuncNode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.FuncNode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.FuncNode

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.FuncNode

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.FuncNode

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.FuncNode

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.FuncNode

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.FuncNode

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.FuncNode

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.FuncNode

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.FuncNode

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.FuncNode

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.FuncNode

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.FuncNode

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.FuncNode

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.FuncNode

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.FuncNode

KeyNotIn applies the NotIn predicate on the "key" field.

func Name

func Name(v string) predicate.FuncNode

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.FuncNode

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.FuncNode

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.FuncNode

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.FuncNode

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.FuncNode

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.FuncNode

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.FuncNode

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.FuncNode

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.FuncNode

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.FuncNode

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.FuncNode

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.FuncNode

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.FuncNode

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.FuncNode) predicate.FuncNode

Or groups predicates with the OR operator between them.

func Pkg

func Pkg(v string) predicate.FuncNode

Pkg applies equality check predicate on the "pkg" field. It's identical to PkgEQ.

func PkgContains

func PkgContains(v string) predicate.FuncNode

PkgContains applies the Contains predicate on the "pkg" field.

func PkgContainsFold

func PkgContainsFold(v string) predicate.FuncNode

PkgContainsFold applies the ContainsFold predicate on the "pkg" field.

func PkgEQ

func PkgEQ(v string) predicate.FuncNode

PkgEQ applies the EQ predicate on the "pkg" field.

func PkgEqualFold

func PkgEqualFold(v string) predicate.FuncNode

PkgEqualFold applies the EqualFold predicate on the "pkg" field.

func PkgGT

func PkgGT(v string) predicate.FuncNode

PkgGT applies the GT predicate on the "pkg" field.

func PkgGTE

func PkgGTE(v string) predicate.FuncNode

PkgGTE applies the GTE predicate on the "pkg" field.

func PkgHasPrefix

func PkgHasPrefix(v string) predicate.FuncNode

PkgHasPrefix applies the HasPrefix predicate on the "pkg" field.

func PkgHasSuffix

func PkgHasSuffix(v string) predicate.FuncNode

PkgHasSuffix applies the HasSuffix predicate on the "pkg" field.

func PkgIn

func PkgIn(vs ...string) predicate.FuncNode

PkgIn applies the In predicate on the "pkg" field.

func PkgLT

func PkgLT(v string) predicate.FuncNode

PkgLT applies the LT predicate on the "pkg" field.

func PkgLTE

func PkgLTE(v string) predicate.FuncNode

PkgLTE applies the LTE predicate on the "pkg" field.

func PkgNEQ

func PkgNEQ(v string) predicate.FuncNode

PkgNEQ applies the NEQ predicate on the "pkg" field.

func PkgNotIn

func PkgNotIn(vs ...string) predicate.FuncNode

PkgNotIn applies the NotIn predicate on the "pkg" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.FuncNode

UpdatedAt applies equality check predicate on the "UpdatedAt" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.FuncNode

UpdatedAtEQ applies the EQ predicate on the "UpdatedAt" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.FuncNode

UpdatedAtGT applies the GT predicate on the "UpdatedAt" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.FuncNode

UpdatedAtGTE applies the GTE predicate on the "UpdatedAt" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.FuncNode

UpdatedAtIn applies the In predicate on the "UpdatedAt" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.FuncNode

UpdatedAtLT applies the LT predicate on the "UpdatedAt" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.FuncNode

UpdatedAtLTE applies the LTE predicate on the "UpdatedAt" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.FuncNode

UpdatedAtNEQ applies the NEQ predicate on the "UpdatedAt" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.FuncNode

UpdatedAtNotIn applies the NotIn predicate on the "UpdatedAt" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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