user

package
v0.0.0-...-21d70f0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 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"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldKarma holds the string denoting the karma field in the database.
	FieldKarma = "karma"
	// FieldAbout holds the string denoting the about field in the database.
	FieldAbout = "about"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

Columns holds all SQL columns for user fields.

View Source
var (
	// DefaultKarma holds the default value on creation for the "karma" field.
	DefaultKarma int
)

Functions

func About

func About(v string) predicate.User

About applies equality check predicate on the "about" field. It's identical to AboutEQ.

func AboutContains

func AboutContains(v string) predicate.User

AboutContains applies the Contains predicate on the "about" field.

func AboutContainsFold

func AboutContainsFold(v string) predicate.User

AboutContainsFold applies the ContainsFold predicate on the "about" field.

func AboutEQ

func AboutEQ(v string) predicate.User

AboutEQ applies the EQ predicate on the "about" field.

func AboutEqualFold

func AboutEqualFold(v string) predicate.User

AboutEqualFold applies the EqualFold predicate on the "about" field.

func AboutGT

func AboutGT(v string) predicate.User

AboutGT applies the GT predicate on the "about" field.

func AboutGTE

func AboutGTE(v string) predicate.User

AboutGTE applies the GTE predicate on the "about" field.

func AboutHasPrefix

func AboutHasPrefix(v string) predicate.User

AboutHasPrefix applies the HasPrefix predicate on the "about" field.

func AboutHasSuffix

func AboutHasSuffix(v string) predicate.User

AboutHasSuffix applies the HasSuffix predicate on the "about" field.

func AboutIn

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

AboutIn applies the In predicate on the "about" field.

func AboutIsNil

func AboutIsNil() predicate.User

AboutIsNil applies the IsNil predicate on the "about" field.

func AboutLT

func AboutLT(v string) predicate.User

AboutLT applies the LT predicate on the "about" field.

func AboutLTE

func AboutLTE(v string) predicate.User

AboutLTE applies the LTE predicate on the "about" field.

func AboutNEQ

func AboutNEQ(v string) predicate.User

AboutNEQ applies the NEQ predicate on the "about" field.

func AboutNotIn

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

AboutNotIn applies the NotIn predicate on the "about" field.

func AboutNotNil

func AboutNotNil() predicate.User

AboutNotNil applies the NotNil predicate on the "about" field.

func And

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

And groups predicates with the AND operator between them.

func Created

func Created(v int64) predicate.User

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v int64) predicate.User

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v int64) predicate.User

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v int64) predicate.User

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...int64) predicate.User

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.User

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

func CreatedLT(v int64) predicate.User

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v int64) predicate.User

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v int64) predicate.User

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...int64) predicate.User

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.User

CreatedNotNil applies the NotNil predicate on the "created" field.

func ID

func ID(id string) predicate.User

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.User

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.User

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Karma

func Karma(v int) predicate.User

Karma applies equality check predicate on the "karma" field. It's identical to KarmaEQ.

func KarmaEQ

func KarmaEQ(v int) predicate.User

KarmaEQ applies the EQ predicate on the "karma" field.

func KarmaGT

func KarmaGT(v int) predicate.User

KarmaGT applies the GT predicate on the "karma" field.

func KarmaGTE

func KarmaGTE(v int) predicate.User

KarmaGTE applies the GTE predicate on the "karma" field.

func KarmaIn

func KarmaIn(vs ...int) predicate.User

KarmaIn applies the In predicate on the "karma" field.

func KarmaLT

func KarmaLT(v int) predicate.User

KarmaLT applies the LT predicate on the "karma" field.

func KarmaLTE

func KarmaLTE(v int) predicate.User

KarmaLTE applies the LTE predicate on the "karma" field.

func KarmaNEQ

func KarmaNEQ(v int) predicate.User

KarmaNEQ applies the NEQ predicate on the "karma" field.

func KarmaNotIn

func KarmaNotIn(vs ...int) predicate.User

KarmaNotIn applies the NotIn predicate on the "karma" 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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAbout

func ByAbout(opts ...sql.OrderTermOption) OrderOption

ByAbout orders the results by the about field.

func ByCreated

func ByCreated(opts ...sql.OrderTermOption) OrderOption

ByCreated orders the results by the created field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKarma

func ByKarma(opts ...sql.OrderTermOption) OrderOption

ByKarma orders the results by the karma field.

Jump to

Keyboard shortcuts

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