Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Idea) predicate.Idea
- func CreatedAt(v time.Time) predicate.Idea
- func CreatedAtEQ(v time.Time) predicate.Idea
- func CreatedAtGT(v time.Time) predicate.Idea
- func CreatedAtGTE(v time.Time) predicate.Idea
- func CreatedAtIn(vs ...time.Time) predicate.Idea
- func CreatedAtIsNil() predicate.Idea
- func CreatedAtLT(v time.Time) predicate.Idea
- func CreatedAtLTE(v time.Time) predicate.Idea
- func CreatedAtNEQ(v time.Time) predicate.Idea
- func CreatedAtNotIn(vs ...time.Time) predicate.Idea
- func CreatedAtNotNil() predicate.Idea
- func DataIsNil() predicate.Idea
- func DataNotNil() predicate.Idea
- func Description(v string) predicate.Idea
- func DescriptionContains(v string) predicate.Idea
- func DescriptionContainsFold(v string) predicate.Idea
- func DescriptionEQ(v string) predicate.Idea
- func DescriptionEqualFold(v string) predicate.Idea
- func DescriptionGT(v string) predicate.Idea
- func DescriptionGTE(v string) predicate.Idea
- func DescriptionHasPrefix(v string) predicate.Idea
- func DescriptionHasSuffix(v string) predicate.Idea
- func DescriptionIn(vs ...string) predicate.Idea
- func DescriptionIsNil() predicate.Idea
- func DescriptionLT(v string) predicate.Idea
- func DescriptionLTE(v string) predicate.Idea
- func DescriptionNEQ(v string) predicate.Idea
- func DescriptionNotIn(vs ...string) predicate.Idea
- func DescriptionNotNil() predicate.Idea
- func ID(id string) predicate.Idea
- func IDContainsFold(id string) predicate.Idea
- func IDEQ(id string) predicate.Idea
- func IDEqualFold(id string) predicate.Idea
- func IDGT(id string) predicate.Idea
- func IDGTE(id string) predicate.Idea
- func IDIn(ids ...string) predicate.Idea
- func IDLT(id string) predicate.Idea
- func IDLTE(id string) predicate.Idea
- func IDNEQ(id string) predicate.Idea
- func IDNotIn(ids ...string) predicate.Idea
- func Name(v string) predicate.Idea
- func NameContains(v string) predicate.Idea
- func NameContainsFold(v string) predicate.Idea
- func NameEQ(v string) predicate.Idea
- func NameEqualFold(v string) predicate.Idea
- func NameGT(v string) predicate.Idea
- func NameGTE(v string) predicate.Idea
- func NameHasPrefix(v string) predicate.Idea
- func NameHasSuffix(v string) predicate.Idea
- func NameIn(vs ...string) predicate.Idea
- func NameIsNil() predicate.Idea
- func NameLT(v string) predicate.Idea
- func NameLTE(v string) predicate.Idea
- func NameNEQ(v string) predicate.Idea
- func NameNotIn(vs ...string) predicate.Idea
- func NameNotNil() predicate.Idea
- func Not(p predicate.Idea) predicate.Idea
- func Or(predicates ...predicate.Idea) predicate.Idea
- func Product(v string) predicate.Idea
- func ProductContains(v string) predicate.Idea
- func ProductContainsFold(v string) predicate.Idea
- func ProductEQ(v string) predicate.Idea
- func ProductEqualFold(v string) predicate.Idea
- func ProductGT(v string) predicate.Idea
- func ProductGTE(v string) predicate.Idea
- func ProductHasPrefix(v string) predicate.Idea
- func ProductHasSuffix(v string) predicate.Idea
- func ProductIn(vs ...string) predicate.Idea
- func ProductLT(v string) predicate.Idea
- func ProductLTE(v string) predicate.Idea
- func ProductNEQ(v string) predicate.Idea
- func ProductNotIn(vs ...string) predicate.Idea
- func ReferenceNum(v string) predicate.Idea
- func ReferenceNumContains(v string) predicate.Idea
- func ReferenceNumContainsFold(v string) predicate.Idea
- func ReferenceNumEQ(v string) predicate.Idea
- func ReferenceNumEqualFold(v string) predicate.Idea
- func ReferenceNumGT(v string) predicate.Idea
- func ReferenceNumGTE(v string) predicate.Idea
- func ReferenceNumHasPrefix(v string) predicate.Idea
- func ReferenceNumHasSuffix(v string) predicate.Idea
- func ReferenceNumIn(vs ...string) predicate.Idea
- func ReferenceNumIsNil() predicate.Idea
- func ReferenceNumLT(v string) predicate.Idea
- func ReferenceNumLTE(v string) predicate.Idea
- func ReferenceNumNEQ(v string) predicate.Idea
- func ReferenceNumNotIn(vs ...string) predicate.Idea
- func ReferenceNumNotNil() predicate.Idea
- func Status(v string) predicate.Idea
- func StatusContains(v string) predicate.Idea
- func StatusContainsFold(v string) predicate.Idea
- func StatusEQ(v string) predicate.Idea
- func StatusEqualFold(v string) predicate.Idea
- func StatusGT(v string) predicate.Idea
- func StatusGTE(v string) predicate.Idea
- func StatusHasPrefix(v string) predicate.Idea
- func StatusHasSuffix(v string) predicate.Idea
- func StatusIn(vs ...string) predicate.Idea
- func StatusIsNil() predicate.Idea
- func StatusLT(v string) predicate.Idea
- func StatusLTE(v string) predicate.Idea
- func StatusNEQ(v string) predicate.Idea
- func StatusNotIn(vs ...string) predicate.Idea
- func StatusNotNil() predicate.Idea
- func Tags(v string) predicate.Idea
- func TagsContains(v string) predicate.Idea
- func TagsContainsFold(v string) predicate.Idea
- func TagsEQ(v string) predicate.Idea
- func TagsEqualFold(v string) predicate.Idea
- func TagsGT(v string) predicate.Idea
- func TagsGTE(v string) predicate.Idea
- func TagsHasPrefix(v string) predicate.Idea
- func TagsHasSuffix(v string) predicate.Idea
- func TagsIn(vs ...string) predicate.Idea
- func TagsIsNil() predicate.Idea
- func TagsLT(v string) predicate.Idea
- func TagsLTE(v string) predicate.Idea
- func TagsNEQ(v string) predicate.Idea
- func TagsNotIn(vs ...string) predicate.Idea
- func TagsNotNil() predicate.Idea
- func URL(v string) predicate.Idea
- func URLContains(v string) predicate.Idea
- func URLContainsFold(v string) predicate.Idea
- func URLEQ(v string) predicate.Idea
- func URLEqualFold(v string) predicate.Idea
- func URLGT(v string) predicate.Idea
- func URLGTE(v string) predicate.Idea
- func URLHasPrefix(v string) predicate.Idea
- func URLHasSuffix(v string) predicate.Idea
- func URLIn(vs ...string) predicate.Idea
- func URLIsNil() predicate.Idea
- func URLLT(v string) predicate.Idea
- func URLLTE(v string) predicate.Idea
- func URLNEQ(v string) predicate.Idea
- func URLNotIn(vs ...string) predicate.Idea
- func URLNotNil() predicate.Idea
- func UpdatedAt(v time.Time) predicate.Idea
- func UpdatedAtEQ(v time.Time) predicate.Idea
- func UpdatedAtGT(v time.Time) predicate.Idea
- func UpdatedAtGTE(v time.Time) predicate.Idea
- func UpdatedAtIn(vs ...time.Time) predicate.Idea
- func UpdatedAtIsNil() predicate.Idea
- func UpdatedAtLT(v time.Time) predicate.Idea
- func UpdatedAtLTE(v time.Time) predicate.Idea
- func UpdatedAtNEQ(v time.Time) predicate.Idea
- func UpdatedAtNotIn(vs ...time.Time) predicate.Idea
- func UpdatedAtNotNil() predicate.Idea
- func ValidColumn(column string) bool
- func Votes(v int) predicate.Idea
- func VotesEQ(v int) predicate.Idea
- func VotesGT(v int) predicate.Idea
- func VotesGTE(v int) predicate.Idea
- func VotesIn(vs ...int) predicate.Idea
- func VotesIsNil() predicate.Idea
- func VotesLT(v int) predicate.Idea
- func VotesLTE(v int) predicate.Idea
- func VotesNEQ(v int) predicate.Idea
- func VotesNotIn(vs ...int) predicate.Idea
- func VotesNotNil() predicate.Idea
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProduct(opts ...sql.OrderTermOption) OrderOption
- func ByReferenceNum(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTags(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVotes(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldProduct, FieldReferenceNum, FieldName, FieldDescription, FieldStatus, FieldVotes, FieldTags, FieldURL, FieldCreatedAt, FieldUpdatedAt, FieldData, }
Columns holds all SQL columns for idea fields.
var ( // DefaultVotes holds the default value on creation for the "votes" field. DefaultVotes int )
Functions ¶
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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func DataNotNil ¶
DataNotNil applies the NotNil predicate on the "data" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func Product ¶
Product applies equality check predicate on the "product" field. It's identical to ProductEQ.
func ProductContains ¶
ProductContains applies the Contains predicate on the "product" field.
func ProductContainsFold ¶
ProductContainsFold applies the ContainsFold predicate on the "product" field.
func ProductEqualFold ¶
ProductEqualFold applies the EqualFold predicate on the "product" field.
func ProductGTE ¶
ProductGTE applies the GTE predicate on the "product" field.
func ProductHasPrefix ¶
ProductHasPrefix applies the HasPrefix predicate on the "product" field.
func ProductHasSuffix ¶
ProductHasSuffix applies the HasSuffix predicate on the "product" field.
func ProductLTE ¶
ProductLTE applies the LTE predicate on the "product" field.
func ProductNEQ ¶
ProductNEQ applies the NEQ predicate on the "product" field.
func ProductNotIn ¶
ProductNotIn applies the NotIn predicate on the "product" field.
func ReferenceNum ¶
ReferenceNum applies equality check predicate on the "reference_num" field. It's identical to ReferenceNumEQ.
func ReferenceNumContains ¶
ReferenceNumContains applies the Contains predicate on the "reference_num" field.
func ReferenceNumContainsFold ¶
ReferenceNumContainsFold applies the ContainsFold predicate on the "reference_num" field.
func ReferenceNumEQ ¶
ReferenceNumEQ applies the EQ predicate on the "reference_num" field.
func ReferenceNumEqualFold ¶
ReferenceNumEqualFold applies the EqualFold predicate on the "reference_num" field.
func ReferenceNumGT ¶
ReferenceNumGT applies the GT predicate on the "reference_num" field.
func ReferenceNumGTE ¶
ReferenceNumGTE applies the GTE predicate on the "reference_num" field.
func ReferenceNumHasPrefix ¶
ReferenceNumHasPrefix applies the HasPrefix predicate on the "reference_num" field.
func ReferenceNumHasSuffix ¶
ReferenceNumHasSuffix applies the HasSuffix predicate on the "reference_num" field.
func ReferenceNumIn ¶
ReferenceNumIn applies the In predicate on the "reference_num" field.
func ReferenceNumIsNil ¶
ReferenceNumIsNil applies the IsNil predicate on the "reference_num" field.
func ReferenceNumLT ¶
ReferenceNumLT applies the LT predicate on the "reference_num" field.
func ReferenceNumLTE ¶
ReferenceNumLTE applies the LTE predicate on the "reference_num" field.
func ReferenceNumNEQ ¶
ReferenceNumNEQ applies the NEQ predicate on the "reference_num" field.
func ReferenceNumNotIn ¶
ReferenceNumNotIn applies the NotIn predicate on the "reference_num" field.
func ReferenceNumNotNil ¶
ReferenceNumNotNil applies the NotNil predicate on the "reference_num" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func TagsContains ¶
TagsContains applies the Contains predicate on the "tags" field.
func TagsContainsFold ¶
TagsContainsFold applies the ContainsFold predicate on the "tags" field.
func TagsEqualFold ¶
TagsEqualFold applies the EqualFold predicate on the "tags" field.
func TagsHasPrefix ¶
TagsHasPrefix applies the HasPrefix predicate on the "tags" field.
func TagsHasSuffix ¶
TagsHasSuffix applies the HasSuffix predicate on the "tags" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func URLContains ¶
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEqualFold ¶
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLHasPrefix ¶
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
URLHasSuffix applies the HasSuffix predicate on the "url" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Votes ¶
Votes applies equality check predicate on the "votes" field. It's identical to VotesEQ.
func VotesIsNil ¶
VotesIsNil applies the IsNil predicate on the "votes" field.
func VotesNotIn ¶
VotesNotIn applies the NotIn predicate on the "votes" field.
func VotesNotNil ¶
VotesNotNil applies the NotNil predicate on the "votes" field.
Types ¶
type OrderOption ¶
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.