Documentation ¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.User
- func ActiveEQ(v bool) predicate.User
- func ActiveNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func Comment(v string) predicate.User
- func CommentContains(v string) predicate.User
- func CommentContainsFold(v string) predicate.User
- func CommentEQ(v string) predicate.User
- func CommentEqualFold(v string) predicate.User
- func CommentGT(v string) predicate.User
- func CommentGTE(v string) predicate.User
- func CommentHasPrefix(v string) predicate.User
- func CommentHasSuffix(v string) predicate.User
- func CommentIn(vs ...string) predicate.User
- func CommentIsNil() predicate.User
- func CommentLT(v string) predicate.User
- func CommentLTE(v string) predicate.User
- func CommentNEQ(v string) predicate.User
- func CommentNotIn(vs ...string) predicate.User
- func CommentNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func Firstname(v string) predicate.User
- func FirstnameContains(v string) predicate.User
- func FirstnameContainsFold(v string) predicate.User
- func FirstnameEQ(v string) predicate.User
- func FirstnameEqualFold(v string) predicate.User
- func FirstnameGT(v string) predicate.User
- func FirstnameGTE(v string) predicate.User
- func FirstnameHasPrefix(v string) predicate.User
- func FirstnameHasSuffix(v string) predicate.User
- func FirstnameIn(vs ...string) predicate.User
- func FirstnameLT(v string) predicate.User
- func FirstnameLTE(v string) predicate.User
- func FirstnameNEQ(v string) predicate.User
- func FirstnameNotIn(vs ...string) predicate.User
- func HasBusinesses() predicate.User
- func HasBusinessesWith(preds ...predicate.Business) predicate.User
- func HasTags() predicate.User
- func HasTagsWith(preds ...predicate.Tag) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func Login(v string) predicate.User
- func LoginContains(v string) predicate.User
- func LoginContainsFold(v string) predicate.User
- func LoginEQ(v string) predicate.User
- func LoginEqualFold(v string) predicate.User
- func LoginGT(v string) predicate.User
- func LoginGTE(v string) predicate.User
- func LoginHasPrefix(v string) predicate.User
- func LoginHasSuffix(v string) predicate.User
- func LoginIn(vs ...string) predicate.User
- func LoginLT(v string) predicate.User
- func LoginLTE(v string) predicate.User
- func LoginNEQ(v string) predicate.User
- func LoginNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Passwordhash(v string) predicate.User
- func PasswordhashContains(v string) predicate.User
- func PasswordhashContainsFold(v string) predicate.User
- func PasswordhashEQ(v string) predicate.User
- func PasswordhashEqualFold(v string) predicate.User
- func PasswordhashGT(v string) predicate.User
- func PasswordhashGTE(v string) predicate.User
- func PasswordhashHasPrefix(v string) predicate.User
- func PasswordhashHasSuffix(v string) predicate.User
- func PasswordhashIn(vs ...string) predicate.User
- func PasswordhashIsNil() predicate.User
- func PasswordhashLT(v string) predicate.User
- func PasswordhashLTE(v string) predicate.User
- func PasswordhashNEQ(v string) predicate.User
- func PasswordhashNotIn(vs ...string) predicate.User
- func PasswordhashNotNil() predicate.User
- func Role(v string) predicate.User
- func RoleContains(v string) predicate.User
- func RoleContainsFold(v string) predicate.User
- func RoleEQ(v string) predicate.User
- func RoleEqualFold(v string) predicate.User
- func RoleGT(v string) predicate.User
- func RoleGTE(v string) predicate.User
- func RoleHasPrefix(v string) predicate.User
- func RoleHasSuffix(v string) predicate.User
- func RoleIn(vs ...string) predicate.User
- func RoleLT(v string) predicate.User
- func RoleLTE(v string) predicate.User
- func RoleNEQ(v string) predicate.User
- func RoleNotIn(vs ...string) predicate.User
- func Surname(v string) predicate.User
- func SurnameContains(v string) predicate.User
- func SurnameContainsFold(v string) predicate.User
- func SurnameEQ(v string) predicate.User
- func SurnameEqualFold(v string) predicate.User
- func SurnameGT(v string) predicate.User
- func SurnameGTE(v string) predicate.User
- func SurnameHasPrefix(v string) predicate.User
- func SurnameHasSuffix(v string) predicate.User
- func SurnameIn(vs ...string) predicate.User
- func SurnameLT(v string) predicate.User
- func SurnameLTE(v string) predicate.User
- func SurnameNEQ(v string) predicate.User
- func SurnameNotIn(vs ...string) predicate.User
- func Title(v string) predicate.User
- func TitleContains(v string) predicate.User
- func TitleContainsFold(v string) predicate.User
- func TitleEQ(v string) predicate.User
- func TitleEqualFold(v string) predicate.User
- func TitleGT(v string) predicate.User
- func TitleGTE(v string) predicate.User
- func TitleHasPrefix(v string) predicate.User
- func TitleHasSuffix(v string) predicate.User
- func TitleIn(vs ...string) predicate.User
- func TitleIsNil() predicate.User
- func TitleLT(v string) predicate.User
- func TitleLTE(v string) predicate.User
- func TitleNEQ(v string) predicate.User
- func TitleNotIn(vs ...string) predicate.User
- func TitleNotNil() predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func UsePublicapi(v string) predicate.User
- func UsePublicapiContains(v string) predicate.User
- func UsePublicapiContainsFold(v string) predicate.User
- func UsePublicapiEQ(v string) predicate.User
- func UsePublicapiEqualFold(v string) predicate.User
- func UsePublicapiGT(v string) predicate.User
- func UsePublicapiGTE(v string) predicate.User
- func UsePublicapiHasPrefix(v string) predicate.User
- func UsePublicapiHasSuffix(v string) predicate.User
- func UsePublicapiIn(vs ...string) predicate.User
- func UsePublicapiLT(v string) predicate.User
- func UsePublicapiLTE(v string) predicate.User
- func UsePublicapiNEQ(v string) predicate.User
- func UsePublicapiNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByBusinesses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBusinessesCount(opts ...sql.OrderTermOption) OrderOption
- func ByComment(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFirstname(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLogin(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordhash(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySurname(opts ...sql.OrderTermOption) OrderOption
- func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsePublicapi(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldUsePublicapi holds the string denoting the use_publicapi field in the database. FieldUsePublicapi = "use_publicapi" // FieldLogin holds the string denoting the login field in the database. FieldLogin = "login" // FieldSurname holds the string denoting the surname field in the database. FieldSurname = "surname" // FieldFirstname holds the string denoting the firstname field in the database. FieldFirstname = "firstname" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPasswordhash holds the string denoting the passwordhash field in the database. FieldPasswordhash = "passwordhash" // FieldComment holds the string denoting the comment field in the database. FieldComment = "comment" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // EdgeBusinesses holds the string denoting the businesses edge name in mutations. EdgeBusinesses = "businesses" // EdgeTags holds the string denoting the tags edge name in mutations. EdgeTags = "tags" // Table holds the table name of the user in the database. Table = "users" // BusinessesTable is the table that holds the businesses relation/edge. The primary key declared below. BusinessesTable = "business_users" // BusinessesInverseTable is the table name for the Business entity. // It exists in this package in order to avoid circular dependency with the "business" package. BusinessesInverseTable = "businesses" // TagsTable is the table that holds the tags relation/edge. The primary key declared below. TagsTable = "user_tags" // TagsInverseTable is the table name for the Tag entity. // It exists in this package in order to avoid circular dependency with the "tag" package. TagsInverseTable = "tags" )
Variables ¶
var ( // BusinessesPrimaryKey and BusinessesColumn2 are the table columns denoting the // primary key for the businesses relation (M2M). BusinessesPrimaryKey = []string{"business_id", "user_id"} // TagsPrimaryKey and TagsColumn2 are the table columns denoting the // primary key for the tags relation (M2M). TagsPrimaryKey = []string{"user_id", "tag_id"} )
var ( Hooks [4]ent.Hook Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultUsePublicapi holds the default value on creation for the "use_publicapi" field. DefaultUsePublicapi string // LoginValidator is a validator for the "login" field. It is called by the builders before save. LoginValidator func(string) error // SurnameValidator is a validator for the "surname" field. It is called by the builders before save. SurnameValidator func(string) error // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultRole holds the default value on creation for the "role" field. DefaultRole string // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/hkonitzer/ohmab/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldUsePublicapi, FieldLogin, FieldSurname, FieldFirstname, FieldTitle, FieldEmail, FieldPasswordhash, FieldComment, FieldActive, FieldRole, }
Columns holds all SQL columns for user fields.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func Comment ¶
Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.
func CommentContains ¶
CommentContains applies the Contains predicate on the "comment" field.
func CommentContainsFold ¶
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
func CommentEqualFold ¶
CommentEqualFold applies the EqualFold predicate on the "comment" field.
func CommentGTE ¶
CommentGTE applies the GTE predicate on the "comment" field.
func CommentHasPrefix ¶
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
func CommentHasSuffix ¶
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
func CommentIsNil ¶
CommentIsNil applies the IsNil predicate on the "comment" field.
func CommentLTE ¶
CommentLTE applies the LTE predicate on the "comment" field.
func CommentNEQ ¶
CommentNEQ applies the NEQ predicate on the "comment" field.
func CommentNotIn ¶
CommentNotIn applies the NotIn predicate on the "comment" field.
func CommentNotNil ¶
CommentNotNil applies the NotNil predicate on the "comment" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func Firstname ¶
Firstname applies equality check predicate on the "firstname" field. It's identical to FirstnameEQ.
func FirstnameContains ¶
FirstnameContains applies the Contains predicate on the "firstname" field.
func FirstnameContainsFold ¶
FirstnameContainsFold applies the ContainsFold predicate on the "firstname" field.
func FirstnameEQ ¶
FirstnameEQ applies the EQ predicate on the "firstname" field.
func FirstnameEqualFold ¶
FirstnameEqualFold applies the EqualFold predicate on the "firstname" field.
func FirstnameGT ¶
FirstnameGT applies the GT predicate on the "firstname" field.
func FirstnameGTE ¶
FirstnameGTE applies the GTE predicate on the "firstname" field.
func FirstnameHasPrefix ¶
FirstnameHasPrefix applies the HasPrefix predicate on the "firstname" field.
func FirstnameHasSuffix ¶
FirstnameHasSuffix applies the HasSuffix predicate on the "firstname" field.
func FirstnameIn ¶
FirstnameIn applies the In predicate on the "firstname" field.
func FirstnameLT ¶
FirstnameLT applies the LT predicate on the "firstname" field.
func FirstnameLTE ¶
FirstnameLTE applies the LTE predicate on the "firstname" field.
func FirstnameNEQ ¶
FirstnameNEQ applies the NEQ predicate on the "firstname" field.
func FirstnameNotIn ¶
FirstnameNotIn applies the NotIn predicate on the "firstname" field.
func HasBusinesses ¶
HasBusinesses applies the HasEdge predicate on the "businesses" edge.
func HasBusinessesWith ¶
HasBusinessesWith applies the HasEdge predicate on the "businesses" edge with a given conditions (other predicates).
func HasTagsWith ¶
HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).
func Login ¶
Login applies equality check predicate on the "login" field. It's identical to LoginEQ.
func LoginContains ¶
LoginContains applies the Contains predicate on the "login" field.
func LoginContainsFold ¶
LoginContainsFold applies the ContainsFold predicate on the "login" field.
func LoginEqualFold ¶
LoginEqualFold applies the EqualFold predicate on the "login" field.
func LoginHasPrefix ¶
LoginHasPrefix applies the HasPrefix predicate on the "login" field.
func LoginHasSuffix ¶
LoginHasSuffix applies the HasSuffix predicate on the "login" field.
func LoginNotIn ¶
LoginNotIn applies the NotIn predicate on the "login" field.
func Passwordhash ¶
Passwordhash applies equality check predicate on the "passwordhash" field. It's identical to PasswordhashEQ.
func PasswordhashContains ¶
PasswordhashContains applies the Contains predicate on the "passwordhash" field.
func PasswordhashContainsFold ¶
PasswordhashContainsFold applies the ContainsFold predicate on the "passwordhash" field.
func PasswordhashEQ ¶
PasswordhashEQ applies the EQ predicate on the "passwordhash" field.
func PasswordhashEqualFold ¶
PasswordhashEqualFold applies the EqualFold predicate on the "passwordhash" field.
func PasswordhashGT ¶
PasswordhashGT applies the GT predicate on the "passwordhash" field.
func PasswordhashGTE ¶
PasswordhashGTE applies the GTE predicate on the "passwordhash" field.
func PasswordhashHasPrefix ¶
PasswordhashHasPrefix applies the HasPrefix predicate on the "passwordhash" field.
func PasswordhashHasSuffix ¶
PasswordhashHasSuffix applies the HasSuffix predicate on the "passwordhash" field.
func PasswordhashIn ¶
PasswordhashIn applies the In predicate on the "passwordhash" field.
func PasswordhashIsNil ¶
PasswordhashIsNil applies the IsNil predicate on the "passwordhash" field.
func PasswordhashLT ¶
PasswordhashLT applies the LT predicate on the "passwordhash" field.
func PasswordhashLTE ¶
PasswordhashLTE applies the LTE predicate on the "passwordhash" field.
func PasswordhashNEQ ¶
PasswordhashNEQ applies the NEQ predicate on the "passwordhash" field.
func PasswordhashNotIn ¶
PasswordhashNotIn applies the NotIn predicate on the "passwordhash" field.
func PasswordhashNotNil ¶
PasswordhashNotNil applies the NotNil predicate on the "passwordhash" field.
func RoleContains ¶
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEqualFold ¶
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleHasPrefix ¶
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func Surname ¶
Surname applies equality check predicate on the "surname" field. It's identical to SurnameEQ.
func SurnameContains ¶
SurnameContains applies the Contains predicate on the "surname" field.
func SurnameContainsFold ¶
SurnameContainsFold applies the ContainsFold predicate on the "surname" field.
func SurnameEqualFold ¶
SurnameEqualFold applies the EqualFold predicate on the "surname" field.
func SurnameGTE ¶
SurnameGTE applies the GTE predicate on the "surname" field.
func SurnameHasPrefix ¶
SurnameHasPrefix applies the HasPrefix predicate on the "surname" field.
func SurnameHasSuffix ¶
SurnameHasSuffix applies the HasSuffix predicate on the "surname" field.
func SurnameLTE ¶
SurnameLTE applies the LTE predicate on the "surname" field.
func SurnameNEQ ¶
SurnameNEQ applies the NEQ predicate on the "surname" field.
func SurnameNotIn ¶
SurnameNotIn applies the NotIn predicate on the "surname" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleIsNil ¶
TitleIsNil applies the IsNil predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotNil ¶
TitleNotNil applies the NotNil predicate on the "title" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UsePublicapi ¶
UsePublicapi applies equality check predicate on the "use_publicapi" field. It's identical to UsePublicapiEQ.
func UsePublicapiContains ¶
UsePublicapiContains applies the Contains predicate on the "use_publicapi" field.
func UsePublicapiContainsFold ¶
UsePublicapiContainsFold applies the ContainsFold predicate on the "use_publicapi" field.
func UsePublicapiEQ ¶
UsePublicapiEQ applies the EQ predicate on the "use_publicapi" field.
func UsePublicapiEqualFold ¶
UsePublicapiEqualFold applies the EqualFold predicate on the "use_publicapi" field.
func UsePublicapiGT ¶
UsePublicapiGT applies the GT predicate on the "use_publicapi" field.
func UsePublicapiGTE ¶
UsePublicapiGTE applies the GTE predicate on the "use_publicapi" field.
func UsePublicapiHasPrefix ¶
UsePublicapiHasPrefix applies the HasPrefix predicate on the "use_publicapi" field.
func UsePublicapiHasSuffix ¶
UsePublicapiHasSuffix applies the HasSuffix predicate on the "use_publicapi" field.
func UsePublicapiIn ¶
UsePublicapiIn applies the In predicate on the "use_publicapi" field.
func UsePublicapiLT ¶
UsePublicapiLT applies the LT predicate on the "use_publicapi" field.
func UsePublicapiLTE ¶
UsePublicapiLTE applies the LTE predicate on the "use_publicapi" field.
func UsePublicapiNEQ ¶
UsePublicapiNEQ applies the NEQ predicate on the "use_publicapi" field.
func UsePublicapiNotIn ¶
UsePublicapiNotIn applies the NotIn predicate on the "use_publicapi" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByBusinesses ¶
func ByBusinesses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBusinesses orders the results by businesses terms.
func ByBusinessesCount ¶
func ByBusinessesCount(opts ...sql.OrderTermOption) OrderOption
ByBusinessesCount orders the results by businesses count.
func ByComment ¶
func ByComment(opts ...sql.OrderTermOption) OrderOption
ByComment orders the results by the comment field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFirstname ¶
func ByFirstname(opts ...sql.OrderTermOption) OrderOption
ByFirstname orders the results by the firstname field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLogin ¶
func ByLogin(opts ...sql.OrderTermOption) OrderOption
ByLogin orders the results by the login field.
func ByPasswordhash ¶
func ByPasswordhash(opts ...sql.OrderTermOption) OrderOption
ByPasswordhash orders the results by the passwordhash field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySurname ¶
func BySurname(opts ...sql.OrderTermOption) OrderOption
BySurname orders the results by the surname field.
func ByTags ¶
func ByTags(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTags orders the results by tags terms.
func ByTagsCount ¶
func ByTagsCount(opts ...sql.OrderTermOption) OrderOption
ByTagsCount orders the results by tags count.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsePublicapi ¶
func ByUsePublicapi(opts ...sql.OrderTermOption) OrderOption
ByUsePublicapi orders the results by the use_publicapi field.