Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Timestamp) predicate.Timestamp
- func HasSignature() predicate.Timestamp
- func HasSignatureWith(preds ...predicate.Signature) predicate.Timestamp
- func ID(id uuid.UUID) predicate.Timestamp
- func IDEQ(id uuid.UUID) predicate.Timestamp
- func IDGT(id uuid.UUID) predicate.Timestamp
- func IDGTE(id uuid.UUID) predicate.Timestamp
- func IDIn(ids ...uuid.UUID) predicate.Timestamp
- func IDLT(id uuid.UUID) predicate.Timestamp
- func IDLTE(id uuid.UUID) predicate.Timestamp
- func IDNEQ(id uuid.UUID) predicate.Timestamp
- func IDNotIn(ids ...uuid.UUID) predicate.Timestamp
- func Not(p predicate.Timestamp) predicate.Timestamp
- func Or(predicates ...predicate.Timestamp) predicate.Timestamp
- func Timestamp(v time.Time) predicate.Timestamp
- func TimestampEQ(v time.Time) predicate.Timestamp
- func TimestampGT(v time.Time) predicate.Timestamp
- func TimestampGTE(v time.Time) predicate.Timestamp
- func TimestampIn(vs ...time.Time) predicate.Timestamp
- func TimestampLT(v time.Time) predicate.Timestamp
- func TimestampLTE(v time.Time) predicate.Timestamp
- func TimestampNEQ(v time.Time) predicate.Timestamp
- func TimestampNotIn(vs ...time.Time) predicate.Timestamp
- func Type(v string) predicate.Timestamp
- func TypeContains(v string) predicate.Timestamp
- func TypeContainsFold(v string) predicate.Timestamp
- func TypeEQ(v string) predicate.Timestamp
- func TypeEqualFold(v string) predicate.Timestamp
- func TypeGT(v string) predicate.Timestamp
- func TypeGTE(v string) predicate.Timestamp
- func TypeHasPrefix(v string) predicate.Timestamp
- func TypeHasSuffix(v string) predicate.Timestamp
- func TypeIn(vs ...string) predicate.Timestamp
- func TypeLT(v string) predicate.Timestamp
- func TypeLTE(v string) predicate.Timestamp
- func TypeNEQ(v string) predicate.Timestamp
- func TypeNotIn(vs ...string) predicate.Timestamp
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldType, FieldTimestamp, }
Columns holds all SQL columns for timestamp fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
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 HasSignature ¶
HasSignature applies the HasEdge predicate on the "signature" edge.
func HasSignatureWith ¶
HasSignatureWith applies the HasEdge predicate on the "signature" edge with a given conditions (other predicates).
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" 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 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.