idea

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the idea type in the database.
	Label = "idea"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProduct holds the string denoting the product field in the database.
	FieldProduct = "product"
	// FieldReferenceNum holds the string denoting the reference_num field in the database.
	FieldReferenceNum = "reference_num"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldVotes holds the string denoting the votes field in the database.
	FieldVotes = "votes"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// 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"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// Table holds the table name of the idea in the database.
	Table = "ideas"
)

Variables

Columns holds all SQL columns for idea fields.

View Source
var (
	// DefaultVotes holds the default value on creation for the "votes" field.
	DefaultVotes int
)

Functions

func And

func And(predicates ...predicate.Idea) predicate.Idea

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Idea

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Idea

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Idea

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Idea

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Idea

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Idea

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Idea

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Idea

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Idea

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func DataIsNil

func DataIsNil() predicate.Idea

DataIsNil applies the IsNil predicate on the "data" field.

func DataNotNil

func DataNotNil() predicate.Idea

DataNotNil applies the NotNil predicate on the "data" field.

func Description

func Description(v string) predicate.Idea

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Idea

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Idea

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Idea

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Idea

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Idea

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Idea

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Idea

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Idea

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Idea

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Idea

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Idea

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Idea

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Idea

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Idea

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Idea

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ID

func ID(id string) predicate.Idea

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Idea

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Idea

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Idea

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Idea

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Idea

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Idea

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Idea

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Idea

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Idea

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Idea

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Idea

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Idea

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Idea

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Idea

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Idea

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Idea

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Idea

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Idea

NameIn applies the In predicate on the "name" field.

func NameIsNil

func NameIsNil() predicate.Idea

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Idea

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Idea

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Idea

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Idea

NameNotIn applies the NotIn predicate on the "name" field.

func NameNotNil

func NameNotNil() predicate.Idea

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Idea) predicate.Idea

Or groups predicates with the OR operator between them.

func Product

func Product(v string) predicate.Idea

Product applies equality check predicate on the "product" field. It's identical to ProductEQ.

func ProductContains

func ProductContains(v string) predicate.Idea

ProductContains applies the Contains predicate on the "product" field.

func ProductContainsFold

func ProductContainsFold(v string) predicate.Idea

ProductContainsFold applies the ContainsFold predicate on the "product" field.

func ProductEQ

func ProductEQ(v string) predicate.Idea

ProductEQ applies the EQ predicate on the "product" field.

func ProductEqualFold

func ProductEqualFold(v string) predicate.Idea

ProductEqualFold applies the EqualFold predicate on the "product" field.

func ProductGT

func ProductGT(v string) predicate.Idea

ProductGT applies the GT predicate on the "product" field.

func ProductGTE

func ProductGTE(v string) predicate.Idea

ProductGTE applies the GTE predicate on the "product" field.

func ProductHasPrefix

func ProductHasPrefix(v string) predicate.Idea

ProductHasPrefix applies the HasPrefix predicate on the "product" field.

func ProductHasSuffix

func ProductHasSuffix(v string) predicate.Idea

ProductHasSuffix applies the HasSuffix predicate on the "product" field.

func ProductIn

func ProductIn(vs ...string) predicate.Idea

ProductIn applies the In predicate on the "product" field.

func ProductLT

func ProductLT(v string) predicate.Idea

ProductLT applies the LT predicate on the "product" field.

func ProductLTE

func ProductLTE(v string) predicate.Idea

ProductLTE applies the LTE predicate on the "product" field.

func ProductNEQ

func ProductNEQ(v string) predicate.Idea

ProductNEQ applies the NEQ predicate on the "product" field.

func ProductNotIn

func ProductNotIn(vs ...string) predicate.Idea

ProductNotIn applies the NotIn predicate on the "product" field.

func ReferenceNum

func ReferenceNum(v string) predicate.Idea

ReferenceNum applies equality check predicate on the "reference_num" field. It's identical to ReferenceNumEQ.

func ReferenceNumContains

func ReferenceNumContains(v string) predicate.Idea

ReferenceNumContains applies the Contains predicate on the "reference_num" field.

func ReferenceNumContainsFold

func ReferenceNumContainsFold(v string) predicate.Idea

ReferenceNumContainsFold applies the ContainsFold predicate on the "reference_num" field.

func ReferenceNumEQ

func ReferenceNumEQ(v string) predicate.Idea

ReferenceNumEQ applies the EQ predicate on the "reference_num" field.

func ReferenceNumEqualFold

func ReferenceNumEqualFold(v string) predicate.Idea

ReferenceNumEqualFold applies the EqualFold predicate on the "reference_num" field.

func ReferenceNumGT

func ReferenceNumGT(v string) predicate.Idea

ReferenceNumGT applies the GT predicate on the "reference_num" field.

func ReferenceNumGTE

func ReferenceNumGTE(v string) predicate.Idea

ReferenceNumGTE applies the GTE predicate on the "reference_num" field.

func ReferenceNumHasPrefix

func ReferenceNumHasPrefix(v string) predicate.Idea

ReferenceNumHasPrefix applies the HasPrefix predicate on the "reference_num" field.

func ReferenceNumHasSuffix

func ReferenceNumHasSuffix(v string) predicate.Idea

ReferenceNumHasSuffix applies the HasSuffix predicate on the "reference_num" field.

func ReferenceNumIn

func ReferenceNumIn(vs ...string) predicate.Idea

ReferenceNumIn applies the In predicate on the "reference_num" field.

func ReferenceNumIsNil

func ReferenceNumIsNil() predicate.Idea

ReferenceNumIsNil applies the IsNil predicate on the "reference_num" field.

func ReferenceNumLT

func ReferenceNumLT(v string) predicate.Idea

ReferenceNumLT applies the LT predicate on the "reference_num" field.

func ReferenceNumLTE

func ReferenceNumLTE(v string) predicate.Idea

ReferenceNumLTE applies the LTE predicate on the "reference_num" field.

func ReferenceNumNEQ

func ReferenceNumNEQ(v string) predicate.Idea

ReferenceNumNEQ applies the NEQ predicate on the "reference_num" field.

func ReferenceNumNotIn

func ReferenceNumNotIn(vs ...string) predicate.Idea

ReferenceNumNotIn applies the NotIn predicate on the "reference_num" field.

func ReferenceNumNotNil

func ReferenceNumNotNil() predicate.Idea

ReferenceNumNotNil applies the NotNil predicate on the "reference_num" field.

func Status

func Status(v string) predicate.Idea

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Idea

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Idea

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Idea

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Idea

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Idea

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Idea

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Idea

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Idea

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Idea

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Idea

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Idea

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Idea

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Idea

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Idea

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Idea

StatusNotNil applies the NotNil predicate on the "status" field.

func Tags

func Tags(v string) predicate.Idea

Tags applies equality check predicate on the "tags" field. It's identical to TagsEQ.

func TagsContains

func TagsContains(v string) predicate.Idea

TagsContains applies the Contains predicate on the "tags" field.

func TagsContainsFold

func TagsContainsFold(v string) predicate.Idea

TagsContainsFold applies the ContainsFold predicate on the "tags" field.

func TagsEQ

func TagsEQ(v string) predicate.Idea

TagsEQ applies the EQ predicate on the "tags" field.

func TagsEqualFold

func TagsEqualFold(v string) predicate.Idea

TagsEqualFold applies the EqualFold predicate on the "tags" field.

func TagsGT

func TagsGT(v string) predicate.Idea

TagsGT applies the GT predicate on the "tags" field.

func TagsGTE

func TagsGTE(v string) predicate.Idea

TagsGTE applies the GTE predicate on the "tags" field.

func TagsHasPrefix

func TagsHasPrefix(v string) predicate.Idea

TagsHasPrefix applies the HasPrefix predicate on the "tags" field.

func TagsHasSuffix

func TagsHasSuffix(v string) predicate.Idea

TagsHasSuffix applies the HasSuffix predicate on the "tags" field.

func TagsIn

func TagsIn(vs ...string) predicate.Idea

TagsIn applies the In predicate on the "tags" field.

func TagsIsNil

func TagsIsNil() predicate.Idea

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsLT

func TagsLT(v string) predicate.Idea

TagsLT applies the LT predicate on the "tags" field.

func TagsLTE

func TagsLTE(v string) predicate.Idea

TagsLTE applies the LTE predicate on the "tags" field.

func TagsNEQ

func TagsNEQ(v string) predicate.Idea

TagsNEQ applies the NEQ predicate on the "tags" field.

func TagsNotIn

func TagsNotIn(vs ...string) predicate.Idea

TagsNotIn applies the NotIn predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.Idea

TagsNotNil applies the NotNil predicate on the "tags" field.

func URL

func URL(v string) predicate.Idea

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Idea

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Idea

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Idea

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Idea

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Idea

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Idea

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Idea

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Idea

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Idea

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.Idea

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

func URLLT

func URLLT(v string) predicate.Idea

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Idea

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Idea

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Idea

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.Idea

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Idea

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Idea

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Idea

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Idea

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Idea

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Idea

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Idea

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Idea

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Idea

UpdatedAtNotNil applies the NotNil 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 Votes

func Votes(v int) predicate.Idea

Votes applies equality check predicate on the "votes" field. It's identical to VotesEQ.

func VotesEQ

func VotesEQ(v int) predicate.Idea

VotesEQ applies the EQ predicate on the "votes" field.

func VotesGT

func VotesGT(v int) predicate.Idea

VotesGT applies the GT predicate on the "votes" field.

func VotesGTE

func VotesGTE(v int) predicate.Idea

VotesGTE applies the GTE predicate on the "votes" field.

func VotesIn

func VotesIn(vs ...int) predicate.Idea

VotesIn applies the In predicate on the "votes" field.

func VotesIsNil

func VotesIsNil() predicate.Idea

VotesIsNil applies the IsNil predicate on the "votes" field.

func VotesLT

func VotesLT(v int) predicate.Idea

VotesLT applies the LT predicate on the "votes" field.

func VotesLTE

func VotesLTE(v int) predicate.Idea

VotesLTE applies the LTE predicate on the "votes" field.

func VotesNEQ

func VotesNEQ(v int) predicate.Idea

VotesNEQ applies the NEQ predicate on the "votes" field.

func VotesNotIn

func VotesNotIn(vs ...int) predicate.Idea

VotesNotIn applies the NotIn predicate on the "votes" field.

func VotesNotNil

func VotesNotNil() predicate.Idea

VotesNotNil applies the NotNil predicate on the "votes" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Idea queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByProduct

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

ByProduct orders the results by the product field.

func ByReferenceNum

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

ByReferenceNum orders the results by the reference_num field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTags

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

ByTags orders the results by the tags field.

func ByURL

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

ByURL orders the results by the url field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVotes

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

ByVotes orders the results by the votes field.

Jump to

Keyboard shortcuts

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