customtype

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the customtype type in the database.
	Label = "custom_type"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCustom holds the string denoting the custom field in the database.
	FieldCustom = "custom"
	// Table holds the table name of the customtype in the database.
	Table = "custom_types"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldCustom,
}

Columns holds all SQL columns for customtype fields.

Functions

func And

func And(predicates ...predicate.CustomType) predicate.CustomType

And groups predicates with the AND operator between them.

func Custom

func Custom(v string) predicate.CustomType

Custom applies equality check predicate on the "custom" field. It's identical to CustomEQ.

func CustomContains

func CustomContains(v string) predicate.CustomType

CustomContains applies the Contains predicate on the "custom" field.

func CustomContainsFold

func CustomContainsFold(v string) predicate.CustomType

CustomContainsFold applies the ContainsFold predicate on the "custom" field.

func CustomEQ

func CustomEQ(v string) predicate.CustomType

CustomEQ applies the EQ predicate on the "custom" field.

func CustomEqualFold

func CustomEqualFold(v string) predicate.CustomType

CustomEqualFold applies the EqualFold predicate on the "custom" field.

func CustomGT

func CustomGT(v string) predicate.CustomType

CustomGT applies the GT predicate on the "custom" field.

func CustomGTE

func CustomGTE(v string) predicate.CustomType

CustomGTE applies the GTE predicate on the "custom" field.

func CustomHasPrefix

func CustomHasPrefix(v string) predicate.CustomType

CustomHasPrefix applies the HasPrefix predicate on the "custom" field.

func CustomHasSuffix

func CustomHasSuffix(v string) predicate.CustomType

CustomHasSuffix applies the HasSuffix predicate on the "custom" field.

func CustomIn

func CustomIn(vs ...string) predicate.CustomType

CustomIn applies the In predicate on the "custom" field.

func CustomIsNil

func CustomIsNil() predicate.CustomType

CustomIsNil applies the IsNil predicate on the "custom" field.

func CustomLT

func CustomLT(v string) predicate.CustomType

CustomLT applies the LT predicate on the "custom" field.

func CustomLTE

func CustomLTE(v string) predicate.CustomType

CustomLTE applies the LTE predicate on the "custom" field.

func CustomNEQ

func CustomNEQ(v string) predicate.CustomType

CustomNEQ applies the NEQ predicate on the "custom" field.

func CustomNotIn

func CustomNotIn(vs ...string) predicate.CustomType

CustomNotIn applies the NotIn predicate on the "custom" field.

func CustomNotNil

func CustomNotNil() predicate.CustomType

CustomNotNil applies the NotNil predicate on the "custom" field.

func ID

func ID(id int) predicate.CustomType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CustomType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CustomType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CustomType

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CustomType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CustomType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CustomType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CustomType) predicate.CustomType

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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