Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Thought) predicate.Thought
- func Body(v string) predicate.Thought
- func BodyContains(v string) predicate.Thought
- func BodyContainsFold(v string) predicate.Thought
- func BodyEQ(v string) predicate.Thought
- func BodyEqualFold(v string) predicate.Thought
- func BodyGT(v string) predicate.Thought
- func BodyGTE(v string) predicate.Thought
- func BodyHasPrefix(v string) predicate.Thought
- func BodyHasSuffix(v string) predicate.Thought
- func BodyIn(vs ...string) predicate.Thought
- func BodyLT(v string) predicate.Thought
- func BodyLTE(v string) predicate.Thought
- func BodyNEQ(v string) predicate.Thought
- func BodyNotIn(vs ...string) predicate.Thought
- func ID(id int) predicate.Thought
- func IDEQ(id int) predicate.Thought
- func IDGT(id int) predicate.Thought
- func IDGTE(id int) predicate.Thought
- func IDIn(ids ...int) predicate.Thought
- func IDLT(id int) predicate.Thought
- func IDLTE(id int) predicate.Thought
- func IDNEQ(id int) predicate.Thought
- func IDNotIn(ids ...int) predicate.Thought
- func ImageURL(v string) predicate.Thought
- func ImageURLContains(v string) predicate.Thought
- func ImageURLContainsFold(v string) predicate.Thought
- func ImageURLEQ(v string) predicate.Thought
- func ImageURLEqualFold(v string) predicate.Thought
- func ImageURLGT(v string) predicate.Thought
- func ImageURLGTE(v string) predicate.Thought
- func ImageURLHasPrefix(v string) predicate.Thought
- func ImageURLHasSuffix(v string) predicate.Thought
- func ImageURLIn(vs ...string) predicate.Thought
- func ImageURLLT(v string) predicate.Thought
- func ImageURLLTE(v string) predicate.Thought
- func ImageURLNEQ(v string) predicate.Thought
- func ImageURLNotIn(vs ...string) predicate.Thought
- func Not(p predicate.Thought) predicate.Thought
- func Or(predicates ...predicate.Thought) predicate.Thought
- func Title(v string) predicate.Thought
- func TitleContains(v string) predicate.Thought
- func TitleContainsFold(v string) predicate.Thought
- func TitleEQ(v string) predicate.Thought
- func TitleEqualFold(v string) predicate.Thought
- func TitleGT(v string) predicate.Thought
- func TitleGTE(v string) predicate.Thought
- func TitleHasPrefix(v string) predicate.Thought
- func TitleHasSuffix(v string) predicate.Thought
- func TitleIn(vs ...string) predicate.Thought
- func TitleLT(v string) predicate.Thought
- func TitleLTE(v string) predicate.Thought
- func TitleNEQ(v string) predicate.Thought
- func TitleNotIn(vs ...string) predicate.Thought
- func UserId(v int64) predicate.Thought
- func UserIdEQ(v int64) predicate.Thought
- func UserIdGT(v int64) predicate.Thought
- func UserIdGTE(v int64) predicate.Thought
- func UserIdIn(vs ...int64) predicate.Thought
- func UserIdLT(v int64) predicate.Thought
- func UserIdLTE(v int64) predicate.Thought
- func UserIdNEQ(v int64) predicate.Thought
- func UserIdNotIn(vs ...int64) predicate.Thought
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the thought type in the database. Label = "thought" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldImageURL holds the string denoting the imageurl field in the database. FieldImageURL = "image_url" // FieldUserId holds the string denoting the userid field in the database. FieldUserId = "user_id" // Table holds the table name of the thought in the database. Table = "thoughts" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultBody holds the default value on creation for the "body" field. DefaultBody string // BodyValidator is a validator for the "body" field. It is called by the builders before save. BodyValidator func(string) error )
var Columns = []string{ FieldID, FieldTitle, FieldBody, FieldImageURL, FieldUserId, }
Columns holds all SQL columns for thought fields.
Functions ¶
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func ImageURL ¶
ImageURL applies equality check predicate on the "imageURL" field. It's identical to ImageURLEQ.
func ImageURLContains ¶
ImageURLContains applies the Contains predicate on the "imageURL" field.
func ImageURLContainsFold ¶
ImageURLContainsFold applies the ContainsFold predicate on the "imageURL" field.
func ImageURLEQ ¶
ImageURLEQ applies the EQ predicate on the "imageURL" field.
func ImageURLEqualFold ¶
ImageURLEqualFold applies the EqualFold predicate on the "imageURL" field.
func ImageURLGT ¶
ImageURLGT applies the GT predicate on the "imageURL" field.
func ImageURLGTE ¶
ImageURLGTE applies the GTE predicate on the "imageURL" field.
func ImageURLHasPrefix ¶
ImageURLHasPrefix applies the HasPrefix predicate on the "imageURL" field.
func ImageURLHasSuffix ¶
ImageURLHasSuffix applies the HasSuffix predicate on the "imageURL" field.
func ImageURLIn ¶
ImageURLIn applies the In predicate on the "imageURL" field.
func ImageURLLT ¶
ImageURLLT applies the LT predicate on the "imageURL" field.
func ImageURLLTE ¶
ImageURLLTE applies the LTE predicate on the "imageURL" field.
func ImageURLNEQ ¶
ImageURLNEQ applies the NEQ predicate on the "imageURL" field.
func ImageURLNotIn ¶
ImageURLNotIn applies the NotIn predicate on the "imageURL" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func UserId ¶
UserId applies equality check predicate on the "userId" field. It's identical to UserIdEQ.
func UserIdNotIn ¶
UserIdNotIn applies the NotIn predicate on the "userId" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.