Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Index) predicate.Index
- func Attr(v int32) predicate.Index
- func AttrEQ(v int32) predicate.Index
- func AttrGT(v int32) predicate.Index
- func AttrGTE(v int32) predicate.Index
- func AttrIn(vs ...int32) predicate.Index
- func AttrLT(v int32) predicate.Index
- func AttrLTE(v int32) predicate.Index
- func AttrNEQ(v int32) predicate.Index
- func AttrNotIn(vs ...int32) predicate.Index
- func ContentID(v int32) predicate.Index
- func ContentIDEQ(v int32) predicate.Index
- func ContentIDGT(v int32) predicate.Index
- func ContentIDGTE(v int32) predicate.Index
- func ContentIDIn(vs ...int32) predicate.Index
- func ContentIDLT(v int32) predicate.Index
- func ContentIDLTE(v int32) predicate.Index
- func ContentIDNEQ(v int32) predicate.Index
- func ContentIDNotIn(vs ...int32) predicate.Index
- func CreatedAt(v time.Time) predicate.Index
- func CreatedAtEQ(v time.Time) predicate.Index
- func CreatedAtGT(v time.Time) predicate.Index
- func CreatedAtGTE(v time.Time) predicate.Index
- func CreatedAtIn(vs ...time.Time) predicate.Index
- func CreatedAtLT(v time.Time) predicate.Index
- func CreatedAtLTE(v time.Time) predicate.Index
- func CreatedAtNEQ(v time.Time) predicate.Index
- func CreatedAtNotIn(vs ...time.Time) predicate.Index
- func Desc(v string) predicate.Index
- func DescContains(v string) predicate.Index
- func DescContainsFold(v string) predicate.Index
- func DescEQ(v string) predicate.Index
- func DescEqualFold(v string) predicate.Index
- func DescGT(v string) predicate.Index
- func DescGTE(v string) predicate.Index
- func DescHasPrefix(v string) predicate.Index
- func DescHasSuffix(v string) predicate.Index
- func DescIn(vs ...string) predicate.Index
- func DescLT(v string) predicate.Index
- func DescLTE(v string) predicate.Index
- func DescNEQ(v string) predicate.Index
- func DescNotIn(vs ...string) predicate.Index
- func ID(id int32) predicate.Index
- func IDEQ(id int32) predicate.Index
- func IDGT(id int32) predicate.Index
- func IDGTE(id int32) predicate.Index
- func IDIn(ids ...int32) predicate.Index
- func IDLT(id int32) predicate.Index
- func IDLTE(id int32) predicate.Index
- func IDNEQ(id int32) predicate.Index
- func IDNotIn(ids ...int32) predicate.Index
- func Not(p predicate.Index) predicate.Index
- func Or(predicates ...predicate.Index) predicate.Index
- func State(v int8) predicate.Index
- func StateEQ(v int8) predicate.Index
- func StateGT(v int8) predicate.Index
- func StateGTE(v int8) predicate.Index
- func StateIn(vs ...int8) predicate.Index
- func StateLT(v int8) predicate.Index
- func StateLTE(v int8) predicate.Index
- func StateNEQ(v int8) predicate.Index
- func StateNotIn(vs ...int8) predicate.Index
- func Title(v string) predicate.Index
- func TitleContains(v string) predicate.Index
- func TitleContainsFold(v string) predicate.Index
- func TitleEQ(v string) predicate.Index
- func TitleEqualFold(v string) predicate.Index
- func TitleGT(v string) predicate.Index
- func TitleGTE(v string) predicate.Index
- func TitleHasPrefix(v string) predicate.Index
- func TitleHasSuffix(v string) predicate.Index
- func TitleIn(vs ...string) predicate.Index
- func TitleLT(v string) predicate.Index
- func TitleLTE(v string) predicate.Index
- func TitleNEQ(v string) predicate.Index
- func TitleNotIn(vs ...string) predicate.Index
- func UpdatedAt(v time.Time) predicate.Index
- func UpdatedAtEQ(v time.Time) predicate.Index
- func UpdatedAtGT(v time.Time) predicate.Index
- func UpdatedAtGTE(v time.Time) predicate.Index
- func UpdatedAtIn(vs ...time.Time) predicate.Index
- func UpdatedAtLT(v time.Time) predicate.Index
- func UpdatedAtLTE(v time.Time) predicate.Index
- func UpdatedAtNEQ(v time.Time) predicate.Index
- func UpdatedAtNotIn(vs ...time.Time) predicate.Index
- func ValidColumn(column string) bool
- func View(v int32) predicate.Index
- func ViewEQ(v int32) predicate.Index
- func ViewGT(v int32) predicate.Index
- func ViewGTE(v int32) predicate.Index
- func ViewIn(vs ...int32) predicate.Index
- func ViewLT(v int32) predicate.Index
- func ViewLTE(v int32) predicate.Index
- func ViewNEQ(v int32) predicate.Index
- func ViewNotIn(vs ...int32) predicate.Index
Constants ¶
const ( // Label holds the string label denoting the index type in the database. Label = "index" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldContentID holds the string denoting the content_id field in the database. FieldContentID = "content_id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldAttr holds the string denoting the attr field in the database. FieldAttr = "attr" // FieldView holds the string denoting the view field in the database. FieldView = "view" // 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" // FieldState holds the string denoting the state field in the database. FieldState = "state" // Table holds the table name of the index in the database. Table = "blog_index" )
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultAttr holds the default value on creation for the "attr" field. DefaultAttr int32 // DefaultView holds the default value on creation for the "view" field. DefaultView int32 // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // DefaultState holds the default value on creation for the "state" field. DefaultState int8 )
var Columns = []string{ FieldID, FieldContentID, FieldTitle, FieldDesc, FieldAttr, FieldView, FieldCreatedAt, FieldUpdatedAt, FieldState, }
Columns holds all SQL columns for index fields.
Functions ¶
func ContentID ¶
ContentID applies equality check predicate on the "content_id" field. It's identical to ContentIDEQ.
func ContentIDEQ ¶
ContentIDEQ applies the EQ predicate on the "content_id" field.
func ContentIDGT ¶
ContentIDGT applies the GT predicate on the "content_id" field.
func ContentIDGTE ¶
ContentIDGTE applies the GTE predicate on the "content_id" field.
func ContentIDIn ¶
ContentIDIn applies the In predicate on the "content_id" field.
func ContentIDLT ¶
ContentIDLT applies the LT predicate on the "content_id" field.
func ContentIDLTE ¶
ContentIDLTE applies the LTE predicate on the "content_id" field.
func ContentIDNEQ ¶
ContentIDNEQ applies the NEQ predicate on the "content_id" field.
func ContentIDNotIn ¶
ContentIDNotIn applies the NotIn predicate on the "content_id" field.
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 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 DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.