timestamp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the timestamp type in the database.
	Label = "timestamp"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldTimestamp holds the string denoting the timestamp field in the database.
	FieldTimestamp = "timestamp"
	// EdgeSignature holds the string denoting the signature edge name in mutations.
	EdgeSignature = "signature"
	// Table holds the table name of the timestamp in the database.
	Table = "timestamps"
	// SignatureTable is the table that holds the signature relation/edge.
	SignatureTable = "timestamps"
	// SignatureInverseTable is the table name for the Signature entity.
	// It exists in this package in order to avoid circular dependency with the "signature" package.
	SignatureInverseTable = "signatures"
	// SignatureColumn is the table column denoting the signature relation/edge.
	SignatureColumn = "signature_timestamps"
)

Variables

Columns holds all SQL columns for timestamp fields.

View Source
var ForeignKeys = []string{
	"signature_timestamps",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "timestamps" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Timestamp) predicate.Timestamp

And groups predicates with the AND operator between them.

func HasSignature

func HasSignature() predicate.Timestamp

HasSignature applies the HasEdge predicate on the "signature" edge.

func HasSignatureWith

func HasSignatureWith(preds ...predicate.Signature) predicate.Timestamp

HasSignatureWith applies the HasEdge predicate on the "signature" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Timestamp

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Timestamp

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Timestamp

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Timestamp

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Timestamp

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Timestamp

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Timestamp

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Timestamp

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Timestamp

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

Or groups predicates with the OR operator between them.

func Timestamp

func Timestamp(v time.Time) predicate.Timestamp

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.Timestamp

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.Timestamp

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.Timestamp

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.Timestamp

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.Timestamp

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.Timestamp

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.Timestamp

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.Timestamp

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func Type

func Type(v string) predicate.Timestamp

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Timestamp

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Timestamp

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Timestamp

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Timestamp

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Timestamp

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Timestamp

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Timestamp

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Timestamp

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Timestamp

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Timestamp

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Timestamp

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Timestamp

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Timestamp

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Timestamp queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func BySignatureField

func BySignatureField(field string, opts ...sql.OrderTermOption) OrderOption

BySignatureField orders the results by signature field.

func ByTimestamp

func ByTimestamp(opts ...sql.OrderTermOption) OrderOption

ByTimestamp orders the results by the timestamp field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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