business

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the business type in the database.
	Label = "business"
	// 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"
	// FieldName1 holds the string denoting the name1 field in the database.
	FieldName1 = "name1"
	// FieldName2 holds the string denoting the name2 field in the database.
	FieldName2 = "name2"
	// FieldAlias holds the string denoting the alias field in the database.
	FieldAlias = "alias"
	// FieldTelephone holds the string denoting the telephone field in the database.
	FieldTelephone = "telephone"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldWebsite holds the string denoting the website field in the database.
	FieldWebsite = "website"
	// 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"
	// EdgeAddresses holds the string denoting the addresses edge name in mutations.
	EdgeAddresses = "addresses"
	// EdgeTags holds the string denoting the tags edge name in mutations.
	EdgeTags = "tags"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeOperators holds the string denoting the operators edge name in mutations.
	EdgeOperators = "operators"
	// Table holds the table name of the business in the database.
	Table = "businesses"
	// AddressesTable is the table that holds the addresses relation/edge.
	AddressesTable = "addresses"
	// AddressesInverseTable is the table name for the Address entity.
	// It exists in this package in order to avoid circular dependency with the "address" package.
	AddressesInverseTable = "addresses"
	// AddressesColumn is the table column denoting the addresses relation/edge.
	AddressesColumn = "business_addresses"
	// TagsTable is the table that holds the tags relation/edge. The primary key declared below.
	TagsTable = "business_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"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	UsersTable = "business_users"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// OperatorsTable is the table that holds the operators relation/edge. The primary key declared below.
	OperatorsTable = "business_operators"
	// OperatorsInverseTable is the table name for the Operator entity.
	// It exists in this package in order to avoid circular dependency with the "operator" package.
	OperatorsInverseTable = "operators"
)

Variables

View Source
var (
	// TagsPrimaryKey and TagsColumn2 are the table columns denoting the
	// primary key for the tags relation (M2M).
	TagsPrimaryKey = []string{"business_id", "tag_id"}
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"business_id", "user_id"}
	// OperatorsPrimaryKey and OperatorsColumn2 are the table columns denoting the
	// primary key for the operators relation (M2M).
	OperatorsPrimaryKey = []string{"business_id", "operator_id"}
)
View Source
var (
	Hooks  [3]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
	// Name1Validator is a validator for the "name1" field. It is called by the builders before save.
	Name1Validator func(string) error
	// AliasValidator is a validator for the "alias" field. It is called by the builders before save.
	AliasValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// 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"

Columns holds all SQL columns for business fields.

Functions

func Active

func Active(v bool) predicate.Business

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Business

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Business

ActiveNEQ applies the NEQ predicate on the "active" field.

func Alias

func Alias(v string) predicate.Business

Alias applies equality check predicate on the "alias" field. It's identical to AliasEQ.

func AliasContains

func AliasContains(v string) predicate.Business

AliasContains applies the Contains predicate on the "alias" field.

func AliasContainsFold

func AliasContainsFold(v string) predicate.Business

AliasContainsFold applies the ContainsFold predicate on the "alias" field.

func AliasEQ

func AliasEQ(v string) predicate.Business

AliasEQ applies the EQ predicate on the "alias" field.

func AliasEqualFold

func AliasEqualFold(v string) predicate.Business

AliasEqualFold applies the EqualFold predicate on the "alias" field.

func AliasGT

func AliasGT(v string) predicate.Business

AliasGT applies the GT predicate on the "alias" field.

func AliasGTE

func AliasGTE(v string) predicate.Business

AliasGTE applies the GTE predicate on the "alias" field.

func AliasHasPrefix

func AliasHasPrefix(v string) predicate.Business

AliasHasPrefix applies the HasPrefix predicate on the "alias" field.

func AliasHasSuffix

func AliasHasSuffix(v string) predicate.Business

AliasHasSuffix applies the HasSuffix predicate on the "alias" field.

func AliasIn

func AliasIn(vs ...string) predicate.Business

AliasIn applies the In predicate on the "alias" field.

func AliasLT

func AliasLT(v string) predicate.Business

AliasLT applies the LT predicate on the "alias" field.

func AliasLTE

func AliasLTE(v string) predicate.Business

AliasLTE applies the LTE predicate on the "alias" field.

func AliasNEQ

func AliasNEQ(v string) predicate.Business

AliasNEQ applies the NEQ predicate on the "alias" field.

func AliasNotIn

func AliasNotIn(vs ...string) predicate.Business

AliasNotIn applies the NotIn predicate on the "alias" field.

func And

func And(predicates ...predicate.Business) predicate.Business

And groups predicates with the AND operator between them.

func Comment

func Comment(v string) predicate.Business

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.Business

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.Business

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.Business

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.Business

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.Business

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.Business

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.Business

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.Business

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

func CommentIn(vs ...string) predicate.Business

CommentIn applies the In predicate on the "comment" field.

func CommentIsNil

func CommentIsNil() predicate.Business

CommentIsNil applies the IsNil predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.Business

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.Business

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.Business

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

func CommentNotIn(vs ...string) predicate.Business

CommentNotIn applies the NotIn predicate on the "comment" field.

func CommentNotNil

func CommentNotNil() predicate.Business

CommentNotNil applies the NotNil predicate on the "comment" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Business

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Business

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Business

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Business

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Business

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Business

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Business

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Business

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Business

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Business

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Business

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Business

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Business

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Business

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Business

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Business

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Business

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Business

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Business

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Business

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Email

func Email(v string) predicate.Business

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.Business

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.Business

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.Business

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.Business

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.Business

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.Business

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Business

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Business

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.Business

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.Business

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.Business

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.Business

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.Business

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.Business

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.Business

EmailNotNil applies the NotNil predicate on the "email" field.

func HasAddresses

func HasAddresses() predicate.Business

HasAddresses applies the HasEdge predicate on the "addresses" edge.

func HasAddressesWith

func HasAddressesWith(preds ...predicate.Address) predicate.Business

HasAddressesWith applies the HasEdge predicate on the "addresses" edge with a given conditions (other predicates).

func HasOperators

func HasOperators() predicate.Business

HasOperators applies the HasEdge predicate on the "operators" edge.

func HasOperatorsWith

func HasOperatorsWith(preds ...predicate.Operator) predicate.Business

HasOperatorsWith applies the HasEdge predicate on the "operators" edge with a given conditions (other predicates).

func HasTags

func HasTags() predicate.Business

HasTags applies the HasEdge predicate on the "tags" edge.

func HasTagsWith

func HasTagsWith(preds ...predicate.Tag) predicate.Business

HasTagsWith applies the HasEdge predicate on the "tags" edge with a given conditions (other predicates).

func HasUsers

func HasUsers() predicate.Business

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith

func HasUsersWith(preds ...predicate.User) predicate.Business

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Business

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Business

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Business

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Business

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Business

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Business

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Business

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Business

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Business

IDNotIn applies the NotIn predicate on the ID field.

func Name1

func Name1(v string) predicate.Business

Name1 applies equality check predicate on the "name1" field. It's identical to Name1EQ.

func Name1Contains

func Name1Contains(v string) predicate.Business

Name1Contains applies the Contains predicate on the "name1" field.

func Name1ContainsFold

func Name1ContainsFold(v string) predicate.Business

Name1ContainsFold applies the ContainsFold predicate on the "name1" field.

func Name1EQ

func Name1EQ(v string) predicate.Business

Name1EQ applies the EQ predicate on the "name1" field.

func Name1EqualFold

func Name1EqualFold(v string) predicate.Business

Name1EqualFold applies the EqualFold predicate on the "name1" field.

func Name1GT

func Name1GT(v string) predicate.Business

Name1GT applies the GT predicate on the "name1" field.

func Name1GTE

func Name1GTE(v string) predicate.Business

Name1GTE applies the GTE predicate on the "name1" field.

func Name1HasPrefix

func Name1HasPrefix(v string) predicate.Business

Name1HasPrefix applies the HasPrefix predicate on the "name1" field.

func Name1HasSuffix

func Name1HasSuffix(v string) predicate.Business

Name1HasSuffix applies the HasSuffix predicate on the "name1" field.

func Name1In

func Name1In(vs ...string) predicate.Business

Name1In applies the In predicate on the "name1" field.

func Name1LT

func Name1LT(v string) predicate.Business

Name1LT applies the LT predicate on the "name1" field.

func Name1LTE

func Name1LTE(v string) predicate.Business

Name1LTE applies the LTE predicate on the "name1" field.

func Name1NEQ

func Name1NEQ(v string) predicate.Business

Name1NEQ applies the NEQ predicate on the "name1" field.

func Name1NotIn

func Name1NotIn(vs ...string) predicate.Business

Name1NotIn applies the NotIn predicate on the "name1" field.

func Name2

func Name2(v string) predicate.Business

Name2 applies equality check predicate on the "name2" field. It's identical to Name2EQ.

func Name2Contains

func Name2Contains(v string) predicate.Business

Name2Contains applies the Contains predicate on the "name2" field.

func Name2ContainsFold

func Name2ContainsFold(v string) predicate.Business

Name2ContainsFold applies the ContainsFold predicate on the "name2" field.

func Name2EQ

func Name2EQ(v string) predicate.Business

Name2EQ applies the EQ predicate on the "name2" field.

func Name2EqualFold

func Name2EqualFold(v string) predicate.Business

Name2EqualFold applies the EqualFold predicate on the "name2" field.

func Name2GT

func Name2GT(v string) predicate.Business

Name2GT applies the GT predicate on the "name2" field.

func Name2GTE

func Name2GTE(v string) predicate.Business

Name2GTE applies the GTE predicate on the "name2" field.

func Name2HasPrefix

func Name2HasPrefix(v string) predicate.Business

Name2HasPrefix applies the HasPrefix predicate on the "name2" field.

func Name2HasSuffix

func Name2HasSuffix(v string) predicate.Business

Name2HasSuffix applies the HasSuffix predicate on the "name2" field.

func Name2In

func Name2In(vs ...string) predicate.Business

Name2In applies the In predicate on the "name2" field.

func Name2IsNil

func Name2IsNil() predicate.Business

Name2IsNil applies the IsNil predicate on the "name2" field.

func Name2LT

func Name2LT(v string) predicate.Business

Name2LT applies the LT predicate on the "name2" field.

func Name2LTE

func Name2LTE(v string) predicate.Business

Name2LTE applies the LTE predicate on the "name2" field.

func Name2NEQ

func Name2NEQ(v string) predicate.Business

Name2NEQ applies the NEQ predicate on the "name2" field.

func Name2NotIn

func Name2NotIn(vs ...string) predicate.Business

Name2NotIn applies the NotIn predicate on the "name2" field.

func Name2NotNil

func Name2NotNil() predicate.Business

Name2NotNil applies the NotNil predicate on the "name2" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Business) predicate.Business

Or groups predicates with the OR operator between them.

func Telephone

func Telephone(v string) predicate.Business

Telephone applies equality check predicate on the "telephone" field. It's identical to TelephoneEQ.

func TelephoneContains

func TelephoneContains(v string) predicate.Business

TelephoneContains applies the Contains predicate on the "telephone" field.

func TelephoneContainsFold

func TelephoneContainsFold(v string) predicate.Business

TelephoneContainsFold applies the ContainsFold predicate on the "telephone" field.

func TelephoneEQ

func TelephoneEQ(v string) predicate.Business

TelephoneEQ applies the EQ predicate on the "telephone" field.

func TelephoneEqualFold

func TelephoneEqualFold(v string) predicate.Business

TelephoneEqualFold applies the EqualFold predicate on the "telephone" field.

func TelephoneGT

func TelephoneGT(v string) predicate.Business

TelephoneGT applies the GT predicate on the "telephone" field.

func TelephoneGTE

func TelephoneGTE(v string) predicate.Business

TelephoneGTE applies the GTE predicate on the "telephone" field.

func TelephoneHasPrefix

func TelephoneHasPrefix(v string) predicate.Business

TelephoneHasPrefix applies the HasPrefix predicate on the "telephone" field.

func TelephoneHasSuffix

func TelephoneHasSuffix(v string) predicate.Business

TelephoneHasSuffix applies the HasSuffix predicate on the "telephone" field.

func TelephoneIn

func TelephoneIn(vs ...string) predicate.Business

TelephoneIn applies the In predicate on the "telephone" field.

func TelephoneIsNil

func TelephoneIsNil() predicate.Business

TelephoneIsNil applies the IsNil predicate on the "telephone" field.

func TelephoneLT

func TelephoneLT(v string) predicate.Business

TelephoneLT applies the LT predicate on the "telephone" field.

func TelephoneLTE

func TelephoneLTE(v string) predicate.Business

TelephoneLTE applies the LTE predicate on the "telephone" field.

func TelephoneNEQ

func TelephoneNEQ(v string) predicate.Business

TelephoneNEQ applies the NEQ predicate on the "telephone" field.

func TelephoneNotIn

func TelephoneNotIn(vs ...string) predicate.Business

TelephoneNotIn applies the NotIn predicate on the "telephone" field.

func TelephoneNotNil

func TelephoneNotNil() predicate.Business

TelephoneNotNil applies the NotNil predicate on the "telephone" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Business

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Business

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Business

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Business

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Business

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Business

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Business

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Business

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Business

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Website

func Website(v string) predicate.Business

Website applies equality check predicate on the "website" field. It's identical to WebsiteEQ.

func WebsiteContains

func WebsiteContains(v string) predicate.Business

WebsiteContains applies the Contains predicate on the "website" field.

func WebsiteContainsFold

func WebsiteContainsFold(v string) predicate.Business

WebsiteContainsFold applies the ContainsFold predicate on the "website" field.

func WebsiteEQ

func WebsiteEQ(v string) predicate.Business

WebsiteEQ applies the EQ predicate on the "website" field.

func WebsiteEqualFold

func WebsiteEqualFold(v string) predicate.Business

WebsiteEqualFold applies the EqualFold predicate on the "website" field.

func WebsiteGT

func WebsiteGT(v string) predicate.Business

WebsiteGT applies the GT predicate on the "website" field.

func WebsiteGTE

func WebsiteGTE(v string) predicate.Business

WebsiteGTE applies the GTE predicate on the "website" field.

func WebsiteHasPrefix

func WebsiteHasPrefix(v string) predicate.Business

WebsiteHasPrefix applies the HasPrefix predicate on the "website" field.

func WebsiteHasSuffix

func WebsiteHasSuffix(v string) predicate.Business

WebsiteHasSuffix applies the HasSuffix predicate on the "website" field.

func WebsiteIn

func WebsiteIn(vs ...string) predicate.Business

WebsiteIn applies the In predicate on the "website" field.

func WebsiteIsNil

func WebsiteIsNil() predicate.Business

WebsiteIsNil applies the IsNil predicate on the "website" field.

func WebsiteLT

func WebsiteLT(v string) predicate.Business

WebsiteLT applies the LT predicate on the "website" field.

func WebsiteLTE

func WebsiteLTE(v string) predicate.Business

WebsiteLTE applies the LTE predicate on the "website" field.

func WebsiteNEQ

func WebsiteNEQ(v string) predicate.Business

WebsiteNEQ applies the NEQ predicate on the "website" field.

func WebsiteNotIn

func WebsiteNotIn(vs ...string) predicate.Business

WebsiteNotIn applies the NotIn predicate on the "website" field.

func WebsiteNotNil

func WebsiteNotNil() predicate.Business

WebsiteNotNil applies the NotNil predicate on the "website" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Business queries.

func ByActive

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

ByActive orders the results by the active field.

func ByAddresses

func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAddresses orders the results by addresses terms.

func ByAddressesCount

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

ByAddressesCount orders the results by addresses count.

func ByAlias

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

ByAlias orders the results by the alias field.

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 ByID

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

ByID orders the results by the id field.

func ByName1

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

ByName1 orders the results by the name1 field.

func ByName2

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

ByName2 orders the results by the name2 field.

func ByOperators

func ByOperators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOperators orders the results by operators terms.

func ByOperatorsCount

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

ByOperatorsCount orders the results by operators count.

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 ByTelephone

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

ByTelephone orders the results by the telephone field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUsers

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount

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

ByUsersCount orders the results by users count.

func ByWebsite

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

ByWebsite orders the results by the website field.

Jump to

Keyboard shortcuts

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