search

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the search type in the database.
	Label = "search"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldGreatness holds the string denoting the greatness field in the database.
	FieldGreatness = "greatness"
	// FieldClaimed holds the string denoting the claimed field in the database.
	FieldClaimed = "claimed"
	// FieldOpened holds the string denoting the opened field in the database.
	FieldOpened = "opened"
	// FieldSaleActive holds the string denoting the sale_active field in the database.
	FieldSaleActive = "sale_active"
	// FieldSalePrice holds the string denoting the sale_price field in the database.
	FieldSalePrice = "sale_price"
	// FieldLastSalePrice holds the string denoting the last_sale_price field in the database.
	FieldLastSalePrice = "last_sale_price"
	// EdgeDope holds the string denoting the dope edge name in mutations.
	EdgeDope = "dope"
	// EdgeItem holds the string denoting the item edge name in mutations.
	EdgeItem = "item"
	// EdgeHustler holds the string denoting the hustler edge name in mutations.
	EdgeHustler = "hustler"
	// Table holds the table name of the search in the database.
	Table = "search_index"
	// DopeTable is the table that holds the dope relation/edge.
	DopeTable = "search_index"
	// DopeInverseTable is the table name for the Dope entity.
	// It exists in this package in order to avoid circular dependency with the "dope" package.
	DopeInverseTable = "dopes"
	// DopeColumn is the table column denoting the dope relation/edge.
	DopeColumn = "dope_index"
	// ItemTable is the table that holds the item relation/edge.
	ItemTable = "search_index"
	// ItemInverseTable is the table name for the Item entity.
	// It exists in this package in order to avoid circular dependency with the "item" package.
	ItemInverseTable = "items"
	// ItemColumn is the table column denoting the item relation/edge.
	ItemColumn = "item_index"
	// HustlerTable is the table that holds the hustler relation/edge.
	HustlerTable = "search_index"
	// HustlerInverseTable is the table name for the Hustler entity.
	// It exists in this package in order to avoid circular dependency with the "hustler" package.
	HustlerInverseTable = "hustlers"
	// HustlerColumn is the table column denoting the hustler relation/edge.
	HustlerColumn = "hustler_index"
)

Variables

View Source
var (
	// DefaultSalePrice holds the default value on creation for the "sale_price" field.
	DefaultSalePrice func() schema.BigInt
	// DefaultLastSalePrice holds the default value on creation for the "last_sale_price" field.
	DefaultLastSalePrice func() schema.BigInt
)

Columns holds all SQL columns for search fields.

View Source
var ForeignKeys = []string{
	"dope_index",
	"hustler_index",
	"item_index",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "search_index" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Search) predicate.Search

And groups predicates with the AND operator between them.

func Claimed

func Claimed(v bool) predicate.Search

Claimed applies equality check predicate on the "claimed" field. It's identical to ClaimedEQ.

func ClaimedEQ

func ClaimedEQ(v bool) predicate.Search

ClaimedEQ applies the EQ predicate on the "claimed" field.

func ClaimedNEQ

func ClaimedNEQ(v bool) predicate.Search

ClaimedNEQ applies the NEQ predicate on the "claimed" field.

func Greatness

func Greatness(v int) predicate.Search

Greatness applies equality check predicate on the "greatness" field. It's identical to GreatnessEQ.

func GreatnessEQ

func GreatnessEQ(v int) predicate.Search

GreatnessEQ applies the EQ predicate on the "greatness" field.

func GreatnessGT

func GreatnessGT(v int) predicate.Search

GreatnessGT applies the GT predicate on the "greatness" field.

func GreatnessGTE

func GreatnessGTE(v int) predicate.Search

GreatnessGTE applies the GTE predicate on the "greatness" field.

func GreatnessIn

func GreatnessIn(vs ...int) predicate.Search

GreatnessIn applies the In predicate on the "greatness" field.

func GreatnessIsNil

func GreatnessIsNil() predicate.Search

GreatnessIsNil applies the IsNil predicate on the "greatness" field.

func GreatnessLT

func GreatnessLT(v int) predicate.Search

GreatnessLT applies the LT predicate on the "greatness" field.

func GreatnessLTE

func GreatnessLTE(v int) predicate.Search

GreatnessLTE applies the LTE predicate on the "greatness" field.

func GreatnessNEQ

func GreatnessNEQ(v int) predicate.Search

GreatnessNEQ applies the NEQ predicate on the "greatness" field.

func GreatnessNotIn

func GreatnessNotIn(vs ...int) predicate.Search

GreatnessNotIn applies the NotIn predicate on the "greatness" field.

func GreatnessNotNil

func GreatnessNotNil() predicate.Search

GreatnessNotNil applies the NotNil predicate on the "greatness" field.

func HasDope

func HasDope() predicate.Search

HasDope applies the HasEdge predicate on the "dope" edge.

func HasDopeWith

func HasDopeWith(preds ...predicate.Dope) predicate.Search

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

func HasHustler

func HasHustler() predicate.Search

HasHustler applies the HasEdge predicate on the "hustler" edge.

func HasHustlerWith

func HasHustlerWith(preds ...predicate.Hustler) predicate.Search

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

func HasItem

func HasItem() predicate.Search

HasItem applies the HasEdge predicate on the "item" edge.

func HasItemWith

func HasItemWith(preds ...predicate.Item) predicate.Search

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

func ID

func ID(id string) predicate.Search

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Search

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Search

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Search

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Search

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Search

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Search

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastSalePrice

func LastSalePrice(v schema.BigInt) predicate.Search

LastSalePrice applies equality check predicate on the "last_sale_price" field. It's identical to LastSalePriceEQ.

func LastSalePriceEQ

func LastSalePriceEQ(v schema.BigInt) predicate.Search

LastSalePriceEQ applies the EQ predicate on the "last_sale_price" field.

func LastSalePriceGT

func LastSalePriceGT(v schema.BigInt) predicate.Search

LastSalePriceGT applies the GT predicate on the "last_sale_price" field.

func LastSalePriceGTE

func LastSalePriceGTE(v schema.BigInt) predicate.Search

LastSalePriceGTE applies the GTE predicate on the "last_sale_price" field.

func LastSalePriceIn

func LastSalePriceIn(vs ...schema.BigInt) predicate.Search

LastSalePriceIn applies the In predicate on the "last_sale_price" field.

func LastSalePriceLT

func LastSalePriceLT(v schema.BigInt) predicate.Search

LastSalePriceLT applies the LT predicate on the "last_sale_price" field.

func LastSalePriceLTE

func LastSalePriceLTE(v schema.BigInt) predicate.Search

LastSalePriceLTE applies the LTE predicate on the "last_sale_price" field.

func LastSalePriceNEQ

func LastSalePriceNEQ(v schema.BigInt) predicate.Search

LastSalePriceNEQ applies the NEQ predicate on the "last_sale_price" field.

func LastSalePriceNotIn

func LastSalePriceNotIn(vs ...schema.BigInt) predicate.Search

LastSalePriceNotIn applies the NotIn predicate on the "last_sale_price" field.

func Not

Not applies the not operator on the given predicate.

func Opened

func Opened(v bool) predicate.Search

Opened applies equality check predicate on the "opened" field. It's identical to OpenedEQ.

func OpenedEQ

func OpenedEQ(v bool) predicate.Search

OpenedEQ applies the EQ predicate on the "opened" field.

func OpenedNEQ

func OpenedNEQ(v bool) predicate.Search

OpenedNEQ applies the NEQ predicate on the "opened" field.

func Or

func Or(predicates ...predicate.Search) predicate.Search

Or groups predicates with the OR operator between them.

func SaleActive

func SaleActive(v bool) predicate.Search

SaleActive applies equality check predicate on the "sale_active" field. It's identical to SaleActiveEQ.

func SaleActiveEQ

func SaleActiveEQ(v bool) predicate.Search

SaleActiveEQ applies the EQ predicate on the "sale_active" field.

func SaleActiveNEQ

func SaleActiveNEQ(v bool) predicate.Search

SaleActiveNEQ applies the NEQ predicate on the "sale_active" field.

func SalePrice

func SalePrice(v schema.BigInt) predicate.Search

SalePrice applies equality check predicate on the "sale_price" field. It's identical to SalePriceEQ.

func SalePriceEQ

func SalePriceEQ(v schema.BigInt) predicate.Search

SalePriceEQ applies the EQ predicate on the "sale_price" field.

func SalePriceGT

func SalePriceGT(v schema.BigInt) predicate.Search

SalePriceGT applies the GT predicate on the "sale_price" field.

func SalePriceGTE

func SalePriceGTE(v schema.BigInt) predicate.Search

SalePriceGTE applies the GTE predicate on the "sale_price" field.

func SalePriceIn

func SalePriceIn(vs ...schema.BigInt) predicate.Search

SalePriceIn applies the In predicate on the "sale_price" field.

func SalePriceLT

func SalePriceLT(v schema.BigInt) predicate.Search

SalePriceLT applies the LT predicate on the "sale_price" field.

func SalePriceLTE

func SalePriceLTE(v schema.BigInt) predicate.Search

SalePriceLTE applies the LTE predicate on the "sale_price" field.

func SalePriceNEQ

func SalePriceNEQ(v schema.BigInt) predicate.Search

SalePriceNEQ applies the NEQ predicate on the "sale_price" field.

func SalePriceNotIn

func SalePriceNotIn(vs ...schema.BigInt) predicate.Search

SalePriceNotIn applies the NotIn predicate on the "sale_price" field.

func TypeEQ

func TypeEQ(v Type) predicate.Search

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Search

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Search

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Search

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeDOPE    Type = "DOPE"
	TypeITEM    Type = "ITEM"
	TypeHUSTLER Type = "HUSTLER"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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