index

package
v0.0.0-...-6d66e07 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for index fields.

Functions

func And

func And(predicates ...predicate.Index) predicate.Index

And groups predicates with the AND operator between them.

func Attr

func Attr(v int32) predicate.Index

Attr applies equality check predicate on the "attr" field. It's identical to AttrEQ.

func AttrEQ

func AttrEQ(v int32) predicate.Index

AttrEQ applies the EQ predicate on the "attr" field.

func AttrGT

func AttrGT(v int32) predicate.Index

AttrGT applies the GT predicate on the "attr" field.

func AttrGTE

func AttrGTE(v int32) predicate.Index

AttrGTE applies the GTE predicate on the "attr" field.

func AttrIn

func AttrIn(vs ...int32) predicate.Index

AttrIn applies the In predicate on the "attr" field.

func AttrLT

func AttrLT(v int32) predicate.Index

AttrLT applies the LT predicate on the "attr" field.

func AttrLTE

func AttrLTE(v int32) predicate.Index

AttrLTE applies the LTE predicate on the "attr" field.

func AttrNEQ

func AttrNEQ(v int32) predicate.Index

AttrNEQ applies the NEQ predicate on the "attr" field.

func AttrNotIn

func AttrNotIn(vs ...int32) predicate.Index

AttrNotIn applies the NotIn predicate on the "attr" field.

func ContentID

func ContentID(v int32) predicate.Index

ContentID applies equality check predicate on the "content_id" field. It's identical to ContentIDEQ.

func ContentIDEQ

func ContentIDEQ(v int32) predicate.Index

ContentIDEQ applies the EQ predicate on the "content_id" field.

func ContentIDGT

func ContentIDGT(v int32) predicate.Index

ContentIDGT applies the GT predicate on the "content_id" field.

func ContentIDGTE

func ContentIDGTE(v int32) predicate.Index

ContentIDGTE applies the GTE predicate on the "content_id" field.

func ContentIDIn

func ContentIDIn(vs ...int32) predicate.Index

ContentIDIn applies the In predicate on the "content_id" field.

func ContentIDLT

func ContentIDLT(v int32) predicate.Index

ContentIDLT applies the LT predicate on the "content_id" field.

func ContentIDLTE

func ContentIDLTE(v int32) predicate.Index

ContentIDLTE applies the LTE predicate on the "content_id" field.

func ContentIDNEQ

func ContentIDNEQ(v int32) predicate.Index

ContentIDNEQ applies the NEQ predicate on the "content_id" field.

func ContentIDNotIn

func ContentIDNotIn(vs ...int32) predicate.Index

ContentIDNotIn applies the NotIn predicate on the "content_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Index

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Index

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Index

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Index

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Index

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Index

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Index

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

func CreatedAtNotIn

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

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

func Desc

func Desc(v string) predicate.Index

Desc applies equality check predicate on the "desc" field. It's identical to DescEQ.

func DescContains

func DescContains(v string) predicate.Index

DescContains applies the Contains predicate on the "desc" field.

func DescContainsFold

func DescContainsFold(v string) predicate.Index

DescContainsFold applies the ContainsFold predicate on the "desc" field.

func DescEQ

func DescEQ(v string) predicate.Index

DescEQ applies the EQ predicate on the "desc" field.

func DescEqualFold

func DescEqualFold(v string) predicate.Index

DescEqualFold applies the EqualFold predicate on the "desc" field.

func DescGT

func DescGT(v string) predicate.Index

DescGT applies the GT predicate on the "desc" field.

func DescGTE

func DescGTE(v string) predicate.Index

DescGTE applies the GTE predicate on the "desc" field.

func DescHasPrefix

func DescHasPrefix(v string) predicate.Index

DescHasPrefix applies the HasPrefix predicate on the "desc" field.

func DescHasSuffix

func DescHasSuffix(v string) predicate.Index

DescHasSuffix applies the HasSuffix predicate on the "desc" field.

func DescIn

func DescIn(vs ...string) predicate.Index

DescIn applies the In predicate on the "desc" field.

func DescLT

func DescLT(v string) predicate.Index

DescLT applies the LT predicate on the "desc" field.

func DescLTE

func DescLTE(v string) predicate.Index

DescLTE applies the LTE predicate on the "desc" field.

func DescNEQ

func DescNEQ(v string) predicate.Index

DescNEQ applies the NEQ predicate on the "desc" field.

func DescNotIn

func DescNotIn(vs ...string) predicate.Index

DescNotIn applies the NotIn predicate on the "desc" field.

func ID

func ID(id int32) predicate.Index

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int32) predicate.Index

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int32) predicate.Index

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int32) predicate.Index

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int32) predicate.Index

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int32) predicate.Index

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int32) predicate.Index

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int32) predicate.Index

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int32) predicate.Index

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.Index) predicate.Index

Or groups predicates with the OR operator between them.

func State

func State(v int8) predicate.Index

State applies equality check predicate on the "state" field. It's identical to StateEQ.

func StateEQ

func StateEQ(v int8) predicate.Index

StateEQ applies the EQ predicate on the "state" field.

func StateGT

func StateGT(v int8) predicate.Index

StateGT applies the GT predicate on the "state" field.

func StateGTE

func StateGTE(v int8) predicate.Index

StateGTE applies the GTE predicate on the "state" field.

func StateIn

func StateIn(vs ...int8) predicate.Index

StateIn applies the In predicate on the "state" field.

func StateLT

func StateLT(v int8) predicate.Index

StateLT applies the LT predicate on the "state" field.

func StateLTE

func StateLTE(v int8) predicate.Index

StateLTE applies the LTE predicate on the "state" field.

func StateNEQ

func StateNEQ(v int8) predicate.Index

StateNEQ applies the NEQ predicate on the "state" field.

func StateNotIn

func StateNotIn(vs ...int8) predicate.Index

StateNotIn applies the NotIn predicate on the "state" field.

func Title

func Title(v string) predicate.Index

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Index

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Index

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Index

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Index

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Index

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Index

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Index

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Index

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Index

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Index

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Index

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Index

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Index

TitleNotIn applies the NotIn predicate on the "title" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Index

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Index

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Index

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Index

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Index

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Index

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Index

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn 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 View

func View(v int32) predicate.Index

View applies equality check predicate on the "view" field. It's identical to ViewEQ.

func ViewEQ

func ViewEQ(v int32) predicate.Index

ViewEQ applies the EQ predicate on the "view" field.

func ViewGT

func ViewGT(v int32) predicate.Index

ViewGT applies the GT predicate on the "view" field.

func ViewGTE

func ViewGTE(v int32) predicate.Index

ViewGTE applies the GTE predicate on the "view" field.

func ViewIn

func ViewIn(vs ...int32) predicate.Index

ViewIn applies the In predicate on the "view" field.

func ViewLT

func ViewLT(v int32) predicate.Index

ViewLT applies the LT predicate on the "view" field.

func ViewLTE

func ViewLTE(v int32) predicate.Index

ViewLTE applies the LTE predicate on the "view" field.

func ViewNEQ

func ViewNEQ(v int32) predicate.Index

ViewNEQ applies the NEQ predicate on the "view" field.

func ViewNotIn

func ViewNotIn(vs ...int32) predicate.Index

ViewNotIn applies the NotIn predicate on the "view" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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