user

package
v0.0.0-...-15fc393 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldFullName holds the string denoting the fullname field in the database.
	FieldFullName = "full_name"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

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

Columns holds all SQL columns for user fields.

View Source
var (
	// FullNameValidator is a validator for the "fullName" field. It is called by the builders before save.
	FullNameValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func FullName

func FullName(v string) predicate.User

FullName applies equality check predicate on the "fullName" field. It's identical to FullNameEQ.

func FullNameContains

func FullNameContains(v string) predicate.User

FullNameContains applies the Contains predicate on the "fullName" field.

func FullNameContainsFold

func FullNameContainsFold(v string) predicate.User

FullNameContainsFold applies the ContainsFold predicate on the "fullName" field.

func FullNameEQ

func FullNameEQ(v string) predicate.User

FullNameEQ applies the EQ predicate on the "fullName" field.

func FullNameEqualFold

func FullNameEqualFold(v string) predicate.User

FullNameEqualFold applies the EqualFold predicate on the "fullName" field.

func FullNameGT

func FullNameGT(v string) predicate.User

FullNameGT applies the GT predicate on the "fullName" field.

func FullNameGTE

func FullNameGTE(v string) predicate.User

FullNameGTE applies the GTE predicate on the "fullName" field.

func FullNameHasPrefix

func FullNameHasPrefix(v string) predicate.User

FullNameHasPrefix applies the HasPrefix predicate on the "fullName" field.

func FullNameHasSuffix

func FullNameHasSuffix(v string) predicate.User

FullNameHasSuffix applies the HasSuffix predicate on the "fullName" field.

func FullNameIn

func FullNameIn(vs ...string) predicate.User

FullNameIn applies the In predicate on the "fullName" field.

func FullNameLT

func FullNameLT(v string) predicate.User

FullNameLT applies the LT predicate on the "fullName" field.

func FullNameLTE

func FullNameLTE(v string) predicate.User

FullNameLTE applies the LTE predicate on the "fullName" field.

func FullNameNEQ

func FullNameNEQ(v string) predicate.User

FullNameNEQ applies the NEQ predicate on the "fullName" field.

func FullNameNotIn

func FullNameNotIn(vs ...string) predicate.User

FullNameNotIn applies the NotIn predicate on the "fullName" field.

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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