withfields

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the withfields type in the database.
	Label = "with_fields"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldExisting holds the string denoting the existing field in the database.
	FieldExisting = "existing"
	// Table holds the table name of the withfields in the database.
	Table = "with_fields"
)

Variables

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

Columns holds all SQL columns for withfields fields.

Functions

func And

func And(predicates ...predicate.WithFields) predicate.WithFields

And groups predicates with the AND operator between them.

func Existing

func Existing(v string) predicate.WithFields

Existing applies equality check predicate on the "existing" field. It's identical to ExistingEQ.

func ExistingContains

func ExistingContains(v string) predicate.WithFields

ExistingContains applies the Contains predicate on the "existing" field.

func ExistingContainsFold

func ExistingContainsFold(v string) predicate.WithFields

ExistingContainsFold applies the ContainsFold predicate on the "existing" field.

func ExistingEQ

func ExistingEQ(v string) predicate.WithFields

ExistingEQ applies the EQ predicate on the "existing" field.

func ExistingEqualFold

func ExistingEqualFold(v string) predicate.WithFields

ExistingEqualFold applies the EqualFold predicate on the "existing" field.

func ExistingGT

func ExistingGT(v string) predicate.WithFields

ExistingGT applies the GT predicate on the "existing" field.

func ExistingGTE

func ExistingGTE(v string) predicate.WithFields

ExistingGTE applies the GTE predicate on the "existing" field.

func ExistingHasPrefix

func ExistingHasPrefix(v string) predicate.WithFields

ExistingHasPrefix applies the HasPrefix predicate on the "existing" field.

func ExistingHasSuffix

func ExistingHasSuffix(v string) predicate.WithFields

ExistingHasSuffix applies the HasSuffix predicate on the "existing" field.

func ExistingIn

func ExistingIn(vs ...string) predicate.WithFields

ExistingIn applies the In predicate on the "existing" field.

func ExistingLT

func ExistingLT(v string) predicate.WithFields

ExistingLT applies the LT predicate on the "existing" field.

func ExistingLTE

func ExistingLTE(v string) predicate.WithFields

ExistingLTE applies the LTE predicate on the "existing" field.

func ExistingNEQ

func ExistingNEQ(v string) predicate.WithFields

ExistingNEQ applies the NEQ predicate on the "existing" field.

func ExistingNotIn

func ExistingNotIn(vs ...string) predicate.WithFields

ExistingNotIn applies the NotIn predicate on the "existing" field.

func ID

func ID(id int) predicate.WithFields

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.WithFields

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.WithFields

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.WithFields

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.WithFields

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.WithFields

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.WithFields

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.WithFields) predicate.WithFields

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