Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.XProviderCursor) predicate.XProviderCursor
- func ChainID(v uint64) predicate.XProviderCursor
- func ChainIDEQ(v uint64) predicate.XProviderCursor
- func ChainIDGT(v uint64) predicate.XProviderCursor
- func ChainIDGTE(v uint64) predicate.XProviderCursor
- func ChainIDIn(vs ...uint64) predicate.XProviderCursor
- func ChainIDLT(v uint64) predicate.XProviderCursor
- func ChainIDLTE(v uint64) predicate.XProviderCursor
- func ChainIDNEQ(v uint64) predicate.XProviderCursor
- func ChainIDNotIn(vs ...uint64) predicate.XProviderCursor
- func CreatedAt(v time.Time) predicate.XProviderCursor
- func CreatedAtEQ(v time.Time) predicate.XProviderCursor
- func CreatedAtGT(v time.Time) predicate.XProviderCursor
- func CreatedAtGTE(v time.Time) predicate.XProviderCursor
- func CreatedAtIn(vs ...time.Time) predicate.XProviderCursor
- func CreatedAtLT(v time.Time) predicate.XProviderCursor
- func CreatedAtLTE(v time.Time) predicate.XProviderCursor
- func CreatedAtNEQ(v time.Time) predicate.XProviderCursor
- func CreatedAtNotIn(vs ...time.Time) predicate.XProviderCursor
- func Height(v uint64) predicate.XProviderCursor
- func HeightEQ(v uint64) predicate.XProviderCursor
- func HeightGT(v uint64) predicate.XProviderCursor
- func HeightGTE(v uint64) predicate.XProviderCursor
- func HeightIn(vs ...uint64) predicate.XProviderCursor
- func HeightLT(v uint64) predicate.XProviderCursor
- func HeightLTE(v uint64) predicate.XProviderCursor
- func HeightNEQ(v uint64) predicate.XProviderCursor
- func HeightNotIn(vs ...uint64) predicate.XProviderCursor
- func ID(id uuid.UUID) predicate.XProviderCursor
- func IDEQ(id uuid.UUID) predicate.XProviderCursor
- func IDGT(id uuid.UUID) predicate.XProviderCursor
- func IDGTE(id uuid.UUID) predicate.XProviderCursor
- func IDIn(ids ...uuid.UUID) predicate.XProviderCursor
- func IDLT(id uuid.UUID) predicate.XProviderCursor
- func IDLTE(id uuid.UUID) predicate.XProviderCursor
- func IDNEQ(id uuid.UUID) predicate.XProviderCursor
- func IDNotIn(ids ...uuid.UUID) predicate.XProviderCursor
- func Not(p predicate.XProviderCursor) predicate.XProviderCursor
- func Offset(v uint64) predicate.XProviderCursor
- func OffsetEQ(v uint64) predicate.XProviderCursor
- func OffsetGT(v uint64) predicate.XProviderCursor
- func OffsetGTE(v uint64) predicate.XProviderCursor
- func OffsetIn(vs ...uint64) predicate.XProviderCursor
- func OffsetLT(v uint64) predicate.XProviderCursor
- func OffsetLTE(v uint64) predicate.XProviderCursor
- func OffsetNEQ(v uint64) predicate.XProviderCursor
- func OffsetNotIn(vs ...uint64) predicate.XProviderCursor
- func Or(predicates ...predicate.XProviderCursor) predicate.XProviderCursor
- func UpdatedAt(v time.Time) predicate.XProviderCursor
- func UpdatedAtEQ(v time.Time) predicate.XProviderCursor
- func UpdatedAtGT(v time.Time) predicate.XProviderCursor
- func UpdatedAtGTE(v time.Time) predicate.XProviderCursor
- func UpdatedAtIn(vs ...time.Time) predicate.XProviderCursor
- func UpdatedAtLT(v time.Time) predicate.XProviderCursor
- func UpdatedAtLTE(v time.Time) predicate.XProviderCursor
- func UpdatedAtNEQ(v time.Time) predicate.XProviderCursor
- func UpdatedAtNotIn(vs ...time.Time) predicate.XProviderCursor
- func ValidColumn(column string) bool
- type OrderOption
- func ByChainID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHeight(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOffset(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the xprovidercursor type in the database. Label = "xprovider_cursor" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldChainID holds the string denoting the chain_id field in the database. FieldChainID = "chain_id" // FieldHeight holds the string denoting the height field in the database. FieldHeight = "height" // FieldOffset holds the string denoting the offset field in the database. FieldOffset = "offset" // 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" // Table holds the table name of the xprovidercursor in the database. Table = "xprovider_cursors" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldChainID, FieldHeight, FieldOffset, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for xprovidercursor fields.
Functions ¶
func And ¶
func And(predicates ...predicate.XProviderCursor) predicate.XProviderCursor
And groups predicates with the AND operator between them.
func ChainID ¶
func ChainID(v uint64) predicate.XProviderCursor
ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.
func ChainIDEQ ¶
func ChainIDEQ(v uint64) predicate.XProviderCursor
ChainIDEQ applies the EQ predicate on the "chain_id" field.
func ChainIDGT ¶
func ChainIDGT(v uint64) predicate.XProviderCursor
ChainIDGT applies the GT predicate on the "chain_id" field.
func ChainIDGTE ¶
func ChainIDGTE(v uint64) predicate.XProviderCursor
ChainIDGTE applies the GTE predicate on the "chain_id" field.
func ChainIDIn ¶
func ChainIDIn(vs ...uint64) predicate.XProviderCursor
ChainIDIn applies the In predicate on the "chain_id" field.
func ChainIDLT ¶
func ChainIDLT(v uint64) predicate.XProviderCursor
ChainIDLT applies the LT predicate on the "chain_id" field.
func ChainIDLTE ¶
func ChainIDLTE(v uint64) predicate.XProviderCursor
ChainIDLTE applies the LTE predicate on the "chain_id" field.
func ChainIDNEQ ¶
func ChainIDNEQ(v uint64) predicate.XProviderCursor
ChainIDNEQ applies the NEQ predicate on the "chain_id" field.
func ChainIDNotIn ¶
func ChainIDNotIn(vs ...uint64) predicate.XProviderCursor
ChainIDNotIn applies the NotIn predicate on the "chain_id" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.XProviderCursor
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.XProviderCursor
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.XProviderCursor
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.XProviderCursor
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.XProviderCursor
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.XProviderCursor
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.XProviderCursor
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.XProviderCursor
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.XProviderCursor
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Height ¶
func Height(v uint64) predicate.XProviderCursor
Height applies equality check predicate on the "height" field. It's identical to HeightEQ.
func HeightEQ ¶
func HeightEQ(v uint64) predicate.XProviderCursor
HeightEQ applies the EQ predicate on the "height" field.
func HeightGT ¶
func HeightGT(v uint64) predicate.XProviderCursor
HeightGT applies the GT predicate on the "height" field.
func HeightGTE ¶
func HeightGTE(v uint64) predicate.XProviderCursor
HeightGTE applies the GTE predicate on the "height" field.
func HeightIn ¶
func HeightIn(vs ...uint64) predicate.XProviderCursor
HeightIn applies the In predicate on the "height" field.
func HeightLT ¶
func HeightLT(v uint64) predicate.XProviderCursor
HeightLT applies the LT predicate on the "height" field.
func HeightLTE ¶
func HeightLTE(v uint64) predicate.XProviderCursor
HeightLTE applies the LTE predicate on the "height" field.
func HeightNEQ ¶
func HeightNEQ(v uint64) predicate.XProviderCursor
HeightNEQ applies the NEQ predicate on the "height" field.
func HeightNotIn ¶
func HeightNotIn(vs ...uint64) predicate.XProviderCursor
HeightNotIn applies the NotIn predicate on the "height" field.
func ID ¶
func ID(id uuid.UUID) predicate.XProviderCursor
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.XProviderCursor
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.XProviderCursor
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.XProviderCursor
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.XProviderCursor
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.XProviderCursor
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.XProviderCursor
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.XProviderCursor
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.XProviderCursor
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.XProviderCursor) predicate.XProviderCursor
Not applies the not operator on the given predicate.
func Offset ¶ added in v0.1.7
func Offset(v uint64) predicate.XProviderCursor
Offset applies equality check predicate on the "offset" field. It's identical to OffsetEQ.
func OffsetEQ ¶ added in v0.1.7
func OffsetEQ(v uint64) predicate.XProviderCursor
OffsetEQ applies the EQ predicate on the "offset" field.
func OffsetGT ¶ added in v0.1.7
func OffsetGT(v uint64) predicate.XProviderCursor
OffsetGT applies the GT predicate on the "offset" field.
func OffsetGTE ¶ added in v0.1.7
func OffsetGTE(v uint64) predicate.XProviderCursor
OffsetGTE applies the GTE predicate on the "offset" field.
func OffsetIn ¶ added in v0.1.7
func OffsetIn(vs ...uint64) predicate.XProviderCursor
OffsetIn applies the In predicate on the "offset" field.
func OffsetLT ¶ added in v0.1.7
func OffsetLT(v uint64) predicate.XProviderCursor
OffsetLT applies the LT predicate on the "offset" field.
func OffsetLTE ¶ added in v0.1.7
func OffsetLTE(v uint64) predicate.XProviderCursor
OffsetLTE applies the LTE predicate on the "offset" field.
func OffsetNEQ ¶ added in v0.1.7
func OffsetNEQ(v uint64) predicate.XProviderCursor
OffsetNEQ applies the NEQ predicate on the "offset" field.
func OffsetNotIn ¶ added in v0.1.7
func OffsetNotIn(vs ...uint64) predicate.XProviderCursor
OffsetNotIn applies the NotIn predicate on the "offset" field.
func Or ¶
func Or(predicates ...predicate.XProviderCursor) predicate.XProviderCursor
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.XProviderCursor
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.XProviderCursor
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.XProviderCursor
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.XProviderCursor
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.XProviderCursor
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.XProviderCursor
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.XProviderCursor
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.XProviderCursor
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.XProviderCursor
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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the XProviderCursor queries.
func ByChainID ¶
func ByChainID(opts ...sql.OrderTermOption) OrderOption
ByChainID orders the results by the chain_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByHeight ¶
func ByHeight(opts ...sql.OrderTermOption) OrderOption
ByHeight orders the results by the height field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOffset ¶ added in v0.1.7
func ByOffset(opts ...sql.OrderTermOption) OrderOption
ByOffset orders the results by the offset field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.