history

package
v0.0.0-...-24968f5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the history type in the database.
	Label = "history"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldObjID holds the string denoting the obj_id field in the database.
	FieldObjID = "obj_id"
	// FieldObjType holds the string denoting the obj_type field in the database.
	FieldObjType = "obj_type"
	// 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 history in the database.
	Table = "histories"
)

Variables

View Source
var (
	// 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
)

Columns holds all SQL columns for history fields.

Functions

func And

func And(predicates ...predicate.History) predicate.History

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.History

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.History

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.History

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.History

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.History

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.History

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.History

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

func CreatedAtNotIn

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

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

func ID

func ID(id int64) predicate.History

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.History

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.History

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.History

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.History

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.History

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.History

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.History

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.History

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func ObjID

func ObjID(v int64) predicate.History

ObjID applies equality check predicate on the "obj_id" field. It's identical to ObjIDEQ.

func ObjIDEQ

func ObjIDEQ(v int64) predicate.History

ObjIDEQ applies the EQ predicate on the "obj_id" field.

func ObjIDGT

func ObjIDGT(v int64) predicate.History

ObjIDGT applies the GT predicate on the "obj_id" field.

func ObjIDGTE

func ObjIDGTE(v int64) predicate.History

ObjIDGTE applies the GTE predicate on the "obj_id" field.

func ObjIDIn

func ObjIDIn(vs ...int64) predicate.History

ObjIDIn applies the In predicate on the "obj_id" field.

func ObjIDLT

func ObjIDLT(v int64) predicate.History

ObjIDLT applies the LT predicate on the "obj_id" field.

func ObjIDLTE

func ObjIDLTE(v int64) predicate.History

ObjIDLTE applies the LTE predicate on the "obj_id" field.

func ObjIDNEQ

func ObjIDNEQ(v int64) predicate.History

ObjIDNEQ applies the NEQ predicate on the "obj_id" field.

func ObjIDNotIn

func ObjIDNotIn(vs ...int64) predicate.History

ObjIDNotIn applies the NotIn predicate on the "obj_id" field.

func ObjType

func ObjType(v string) predicate.History

ObjType applies equality check predicate on the "obj_type" field. It's identical to ObjTypeEQ.

func ObjTypeContains

func ObjTypeContains(v string) predicate.History

ObjTypeContains applies the Contains predicate on the "obj_type" field.

func ObjTypeContainsFold

func ObjTypeContainsFold(v string) predicate.History

ObjTypeContainsFold applies the ContainsFold predicate on the "obj_type" field.

func ObjTypeEQ

func ObjTypeEQ(v string) predicate.History

ObjTypeEQ applies the EQ predicate on the "obj_type" field.

func ObjTypeEqualFold

func ObjTypeEqualFold(v string) predicate.History

ObjTypeEqualFold applies the EqualFold predicate on the "obj_type" field.

func ObjTypeGT

func ObjTypeGT(v string) predicate.History

ObjTypeGT applies the GT predicate on the "obj_type" field.

func ObjTypeGTE

func ObjTypeGTE(v string) predicate.History

ObjTypeGTE applies the GTE predicate on the "obj_type" field.

func ObjTypeHasPrefix

func ObjTypeHasPrefix(v string) predicate.History

ObjTypeHasPrefix applies the HasPrefix predicate on the "obj_type" field.

func ObjTypeHasSuffix

func ObjTypeHasSuffix(v string) predicate.History

ObjTypeHasSuffix applies the HasSuffix predicate on the "obj_type" field.

func ObjTypeIn

func ObjTypeIn(vs ...string) predicate.History

ObjTypeIn applies the In predicate on the "obj_type" field.

func ObjTypeLT

func ObjTypeLT(v string) predicate.History

ObjTypeLT applies the LT predicate on the "obj_type" field.

func ObjTypeLTE

func ObjTypeLTE(v string) predicate.History

ObjTypeLTE applies the LTE predicate on the "obj_type" field.

func ObjTypeNEQ

func ObjTypeNEQ(v string) predicate.History

ObjTypeNEQ applies the NEQ predicate on the "obj_type" field.

func ObjTypeNotIn

func ObjTypeNotIn(vs ...string) predicate.History

ObjTypeNotIn applies the NotIn predicate on the "obj_type" field.

func Or

func Or(predicates ...predicate.History) predicate.History

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.History

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.History

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.History

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.History

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.History

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.History

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.History

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UserID

func UserID(v int64) predicate.History

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int64) predicate.History

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v int64) predicate.History

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v int64) predicate.History

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int64) predicate.History

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v int64) predicate.History

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v int64) predicate.History

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int64) predicate.History

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int64) predicate.History

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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