voteresult

package
v0.0.0-...-9f24b57 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the voteresult type in the database.
	Label = "vote_result"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHTML holds the string denoting the html field in the database.
	FieldHTML = "html"
	// FieldPlain holds the string denoting the plain field in the database.
	FieldPlain = "plain"
	// FieldVoteID holds the string denoting the vote_id field in the database.
	FieldVoteID = "vote_id"
	// Table holds the table name of the voteresult in the database.
	Table = "vote_results"
)

Variables

Columns holds all SQL columns for voteresult fields.

View Source
var (
	// VoteIDValidator is a validator for the "vote_id" field. It is called by the builders before save.
	VoteIDValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.VoteResult) predicate.VoteResult

And groups predicates with the AND operator between them.

func HTML

func HTML(v string) predicate.VoteResult

HTML applies equality check predicate on the "html" field. It's identical to HTMLEQ.

func HTMLContains

func HTMLContains(v string) predicate.VoteResult

HTMLContains applies the Contains predicate on the "html" field.

func HTMLContainsFold

func HTMLContainsFold(v string) predicate.VoteResult

HTMLContainsFold applies the ContainsFold predicate on the "html" field.

func HTMLEQ

func HTMLEQ(v string) predicate.VoteResult

HTMLEQ applies the EQ predicate on the "html" field.

func HTMLEqualFold

func HTMLEqualFold(v string) predicate.VoteResult

HTMLEqualFold applies the EqualFold predicate on the "html" field.

func HTMLGT

func HTMLGT(v string) predicate.VoteResult

HTMLGT applies the GT predicate on the "html" field.

func HTMLGTE

func HTMLGTE(v string) predicate.VoteResult

HTMLGTE applies the GTE predicate on the "html" field.

func HTMLHasPrefix

func HTMLHasPrefix(v string) predicate.VoteResult

HTMLHasPrefix applies the HasPrefix predicate on the "html" field.

func HTMLHasSuffix

func HTMLHasSuffix(v string) predicate.VoteResult

HTMLHasSuffix applies the HasSuffix predicate on the "html" field.

func HTMLIn

func HTMLIn(vs ...string) predicate.VoteResult

HTMLIn applies the In predicate on the "html" field.

func HTMLLT

func HTMLLT(v string) predicate.VoteResult

HTMLLT applies the LT predicate on the "html" field.

func HTMLLTE

func HTMLLTE(v string) predicate.VoteResult

HTMLLTE applies the LTE predicate on the "html" field.

func HTMLNEQ

func HTMLNEQ(v string) predicate.VoteResult

HTMLNEQ applies the NEQ predicate on the "html" field.

func HTMLNotIn

func HTMLNotIn(vs ...string) predicate.VoteResult

HTMLNotIn applies the NotIn predicate on the "html" field.

func ID

func ID(id int) predicate.VoteResult

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.VoteResult

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.VoteResult

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.VoteResult

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.VoteResult

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.VoteResult

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.VoteResult

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.VoteResult

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.VoteResult

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.VoteResult) predicate.VoteResult

Or groups predicates with the OR operator between them.

func Plain

func Plain(v string) predicate.VoteResult

Plain applies equality check predicate on the "plain" field. It's identical to PlainEQ.

func PlainContains

func PlainContains(v string) predicate.VoteResult

PlainContains applies the Contains predicate on the "plain" field.

func PlainContainsFold

func PlainContainsFold(v string) predicate.VoteResult

PlainContainsFold applies the ContainsFold predicate on the "plain" field.

func PlainEQ

func PlainEQ(v string) predicate.VoteResult

PlainEQ applies the EQ predicate on the "plain" field.

func PlainEqualFold

func PlainEqualFold(v string) predicate.VoteResult

PlainEqualFold applies the EqualFold predicate on the "plain" field.

func PlainGT

func PlainGT(v string) predicate.VoteResult

PlainGT applies the GT predicate on the "plain" field.

func PlainGTE

func PlainGTE(v string) predicate.VoteResult

PlainGTE applies the GTE predicate on the "plain" field.

func PlainHasPrefix

func PlainHasPrefix(v string) predicate.VoteResult

PlainHasPrefix applies the HasPrefix predicate on the "plain" field.

func PlainHasSuffix

func PlainHasSuffix(v string) predicate.VoteResult

PlainHasSuffix applies the HasSuffix predicate on the "plain" field.

func PlainIn

func PlainIn(vs ...string) predicate.VoteResult

PlainIn applies the In predicate on the "plain" field.

func PlainLT

func PlainLT(v string) predicate.VoteResult

PlainLT applies the LT predicate on the "plain" field.

func PlainLTE

func PlainLTE(v string) predicate.VoteResult

PlainLTE applies the LTE predicate on the "plain" field.

func PlainNEQ

func PlainNEQ(v string) predicate.VoteResult

PlainNEQ applies the NEQ predicate on the "plain" field.

func PlainNotIn

func PlainNotIn(vs ...string) predicate.VoteResult

PlainNotIn applies the NotIn predicate on the "plain" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VoteID

func VoteID(v string) predicate.VoteResult

VoteID applies equality check predicate on the "vote_id" field. It's identical to VoteIDEQ.

func VoteIDContains

func VoteIDContains(v string) predicate.VoteResult

VoteIDContains applies the Contains predicate on the "vote_id" field.

func VoteIDContainsFold

func VoteIDContainsFold(v string) predicate.VoteResult

VoteIDContainsFold applies the ContainsFold predicate on the "vote_id" field.

func VoteIDEQ

func VoteIDEQ(v string) predicate.VoteResult

VoteIDEQ applies the EQ predicate on the "vote_id" field.

func VoteIDEqualFold

func VoteIDEqualFold(v string) predicate.VoteResult

VoteIDEqualFold applies the EqualFold predicate on the "vote_id" field.

func VoteIDGT

func VoteIDGT(v string) predicate.VoteResult

VoteIDGT applies the GT predicate on the "vote_id" field.

func VoteIDGTE

func VoteIDGTE(v string) predicate.VoteResult

VoteIDGTE applies the GTE predicate on the "vote_id" field.

func VoteIDHasPrefix

func VoteIDHasPrefix(v string) predicate.VoteResult

VoteIDHasPrefix applies the HasPrefix predicate on the "vote_id" field.

func VoteIDHasSuffix

func VoteIDHasSuffix(v string) predicate.VoteResult

VoteIDHasSuffix applies the HasSuffix predicate on the "vote_id" field.

func VoteIDIn

func VoteIDIn(vs ...string) predicate.VoteResult

VoteIDIn applies the In predicate on the "vote_id" field.

func VoteIDLT

func VoteIDLT(v string) predicate.VoteResult

VoteIDLT applies the LT predicate on the "vote_id" field.

func VoteIDLTE

func VoteIDLTE(v string) predicate.VoteResult

VoteIDLTE applies the LTE predicate on the "vote_id" field.

func VoteIDNEQ

func VoteIDNEQ(v string) predicate.VoteResult

VoteIDNEQ applies the NEQ predicate on the "vote_id" field.

func VoteIDNotIn

func VoteIDNotIn(vs ...string) predicate.VoteResult

VoteIDNotIn applies the NotIn predicate on the "vote_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the VoteResult queries.

func ByHTML

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

ByHTML orders the results by the html field.

func ByID

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

ByID orders the results by the id field.

func ByPlain

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

ByPlain orders the results by the plain field.

func ByVoteID

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

ByVoteID orders the results by the vote_id field.

Jump to

Keyboard shortcuts

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