Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pin) predicate.Pin
- func DeletedAt(v time.Time) predicate.Pin
- func DeletedAtEQ(v time.Time) predicate.Pin
- func DeletedAtGT(v time.Time) predicate.Pin
- func DeletedAtGTE(v time.Time) predicate.Pin
- func DeletedAtIn(vs ...time.Time) predicate.Pin
- func DeletedAtIsNil() predicate.Pin
- func DeletedAtLT(v time.Time) predicate.Pin
- func DeletedAtLTE(v time.Time) predicate.Pin
- func DeletedAtNEQ(v time.Time) predicate.Pin
- func DeletedAtNotIn(vs ...time.Time) predicate.Pin
- func DeletedAtNotNil() predicate.Pin
- func ID(id int) predicate.Pin
- func IDEQ(id int) predicate.Pin
- func IDGT(id int) predicate.Pin
- func IDGTE(id int) predicate.Pin
- func IDIn(ids ...int) predicate.Pin
- func IDLT(id int) predicate.Pin
- func IDLTE(id int) predicate.Pin
- func IDNEQ(id int) predicate.Pin
- func IDNotIn(ids ...int) predicate.Pin
- func MetadataIsNil() predicate.Pin
- func MetadataNotNil() predicate.Pin
- func Not(p predicate.Pin) predicate.Pin
- func Or(predicates ...predicate.Pin) predicate.Pin
- func ReceivedAt(v time.Time) predicate.Pin
- func ReceivedAtEQ(v time.Time) predicate.Pin
- func ReceivedAtGT(v time.Time) predicate.Pin
- func ReceivedAtGTE(v time.Time) predicate.Pin
- func ReceivedAtIn(vs ...time.Time) predicate.Pin
- func ReceivedAtLT(v time.Time) predicate.Pin
- func ReceivedAtLTE(v time.Time) predicate.Pin
- func ReceivedAtNEQ(v time.Time) predicate.Pin
- func ReceivedAtNotIn(vs ...time.Time) predicate.Pin
- func Ref(v []byte) predicate.Pin
- func RefEQ(v []byte) predicate.Pin
- func RefGT(v []byte) predicate.Pin
- func RefGTE(v []byte) predicate.Pin
- func RefIn(vs ...[]byte) predicate.Pin
- func RefLT(v []byte) predicate.Pin
- func RefLTE(v []byte) predicate.Pin
- func RefNEQ(v []byte) predicate.Pin
- func RefNotIn(vs ...[]byte) predicate.Pin
- func Target(v []byte) predicate.Pin
- func TargetEQ(v []byte) predicate.Pin
- func TargetGT(v []byte) predicate.Pin
- func TargetGTE(v []byte) predicate.Pin
- func TargetIn(vs ...[]byte) predicate.Pin
- func TargetLT(v []byte) predicate.Pin
- func TargetLTE(v []byte) predicate.Pin
- func TargetNEQ(v []byte) predicate.Pin
- func TargetNotIn(vs ...[]byte) predicate.Pin
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the pin type in the database. Label = "pin" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRef holds the string denoting the ref field in the database. FieldRef = "ref" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldReceivedAt holds the string denoting the received_at field in the database. FieldReceivedAt = "received_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // Table holds the table name of the pin in the database. Table = "pins" )
Variables ¶
var Columns = []string{ FieldID, FieldRef, FieldTarget, FieldReceivedAt, FieldDeletedAt, FieldMetadata, }
Columns holds all SQL columns for pin fields.
Functions ¶
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func ReceivedAt ¶
ReceivedAt applies equality check predicate on the "received_at" field. It's identical to ReceivedAtEQ.
func ReceivedAtEQ ¶
ReceivedAtEQ applies the EQ predicate on the "received_at" field.
func ReceivedAtGT ¶
ReceivedAtGT applies the GT predicate on the "received_at" field.
func ReceivedAtGTE ¶
ReceivedAtGTE applies the GTE predicate on the "received_at" field.
func ReceivedAtIn ¶
ReceivedAtIn applies the In predicate on the "received_at" field.
func ReceivedAtLT ¶
ReceivedAtLT applies the LT predicate on the "received_at" field.
func ReceivedAtLTE ¶
ReceivedAtLTE applies the LTE predicate on the "received_at" field.
func ReceivedAtNEQ ¶
ReceivedAtNEQ applies the NEQ predicate on the "received_at" field.
func ReceivedAtNotIn ¶
ReceivedAtNotIn applies the NotIn predicate on the "received_at" field.
func Target ¶
Target applies equality check predicate on the "target" field. It's identical to TargetEQ.
func TargetNotIn ¶
TargetNotIn applies the NotIn predicate on the "target" 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 Pin queries.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByReceivedAt ¶
func ByReceivedAt(opts ...sql.OrderTermOption) OrderOption
ByReceivedAt orders the results by the received_at field.