Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Contract) predicate.Contract
- func CreatedAt(v time.Time) predicate.Contract
- func CreatedAtEQ(v time.Time) predicate.Contract
- func CreatedAtGT(v time.Time) predicate.Contract
- func CreatedAtGTE(v time.Time) predicate.Contract
- func CreatedAtIn(vs ...time.Time) predicate.Contract
- func CreatedAtLT(v time.Time) predicate.Contract
- func CreatedAtLTE(v time.Time) predicate.Contract
- func CreatedAtNEQ(v time.Time) predicate.Contract
- func CreatedAtNotIn(vs ...time.Time) predicate.Contract
- func HasTransactions() predicate.Contract
- func HasTransactionsWith(preds ...predicate.Transaction) predicate.Contract
- func ID(id string) predicate.Contract
- func IDEQ(id string) predicate.Contract
- func IDGT(id string) predicate.Contract
- func IDGTE(id string) predicate.Contract
- func IDIn(ids ...string) predicate.Contract
- func IDLT(id string) predicate.Contract
- func IDLTE(id string) predicate.Contract
- func IDNEQ(id string) predicate.Contract
- func IDNotIn(ids ...string) predicate.Contract
- func Not(p predicate.Contract) predicate.Contract
- func Or(predicates ...predicate.Contract) predicate.Contract
- func TypeEQ(v Type) predicate.Contract
- func TypeIn(vs ...Type) predicate.Contract
- func TypeNEQ(v Type) predicate.Contract
- func TypeNotIn(vs ...Type) predicate.Contract
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.Contract
- func UpdatedAtEQ(v time.Time) predicate.Contract
- func UpdatedAtGT(v time.Time) predicate.Contract
- func UpdatedAtGTE(v time.Time) predicate.Contract
- func UpdatedAtIn(vs ...time.Time) predicate.Contract
- func UpdatedAtLT(v time.Time) predicate.Contract
- func UpdatedAtLTE(v time.Time) predicate.Contract
- func UpdatedAtNEQ(v time.Time) predicate.Contract
- func UpdatedAtNotIn(vs ...time.Time) predicate.Contract
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the contract type in the database. Label = "contract" // 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" // 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" // EdgeTransactions holds the string denoting the transactions edge name in mutations. EdgeTransactions = "transactions" // Table holds the table name of the contract in the database. Table = "contracts" // TransactionsTable is the table that holds the transactions relation/edge. TransactionsTable = "transactions" // TransactionsInverseTable is the table name for the Transaction entity. // It exists in this package in order to avoid circular dependency with the "transaction" package. TransactionsInverseTable = "transactions" // TransactionsColumn is the table column denoting the transactions relation/edge. TransactionsColumn = "contract_transactions" )
const DefaultType = TypeUNKNOWN
TypeUNKNOWN is the default value of the Type enum.
Variables ¶
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 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for contract fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasTransactions ¶
HasTransactions applies the HasEdge predicate on the "transactions" edge.
func HasTransactionsWith ¶
func HasTransactionsWith(preds ...predicate.Transaction) predicate.Contract
HasTransactionsWith applies the HasEdge predicate on the "transactions" edge with a given conditions (other predicates).
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
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 Type ¶
type Type string
Type defines the type for the "type" enum field.
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.