user

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 3 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"
	// FieldT holds the string denoting the t field in the database.
	FieldT = "t"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldRaw holds the string denoting the raw field in the database.
	FieldRaw = "raw"
	// FieldDirs holds the string denoting the dirs field in the database.
	FieldDirs = "dirs"
	// FieldInts holds the string denoting the ints field in the database.
	FieldInts = "ints"
	// FieldFloats holds the string denoting the floats field in the database.
	FieldFloats = "floats"
	// FieldStrings holds the string denoting the strings field in the database.
	FieldStrings = "strings"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

View Source
var (
	// DefaultDirs holds the default value on creation for the "dirs" field.
	DefaultDirs func() []http.Dir
	// DefaultInts holds the default value on creation for the "ints" field.
	DefaultInts []int
)

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func FloatsIsNil

func FloatsIsNil() predicate.User

FloatsIsNil applies the IsNil predicate on the "floats" field.

func FloatsNotNil

func FloatsNotNil() predicate.User

FloatsNotNil applies the NotNil predicate on the "floats" 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 IntsIsNil

func IntsIsNil() predicate.User

IntsIsNil applies the IsNil predicate on the "ints" field.

func IntsNotNil

func IntsNotNil() predicate.User

IntsNotNil applies the NotNil predicate on the "ints" 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 RawIsNil

func RawIsNil() predicate.User

RawIsNil applies the IsNil predicate on the "raw" field.

func RawNotNil

func RawNotNil() predicate.User

RawNotNil applies the NotNil predicate on the "raw" field.

func StringsIsNil

func StringsIsNil() predicate.User

StringsIsNil applies the IsNil predicate on the "strings" field.

func StringsNotNil

func StringsNotNil() predicate.User

StringsNotNil applies the NotNil predicate on the "strings" field.

func TIsNil

func TIsNil() predicate.User

TIsNil applies the IsNil predicate on the "t" field.

func TNotNil

func TNotNil() predicate.User

TNotNil applies the NotNil predicate on the "t" field.

func URLIsNil

func URLIsNil() predicate.User

URLIsNil applies the IsNil predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.User

URLNotNil applies the NotNil predicate on the "url" field.

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