Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TransactionType) predicate.TransactionType
- func CreatedAt(v time.Time) predicate.TransactionType
- func CreatedAtEQ(v time.Time) predicate.TransactionType
- func CreatedAtGT(v time.Time) predicate.TransactionType
- func CreatedAtGTE(v time.Time) predicate.TransactionType
- func CreatedAtIn(vs ...time.Time) predicate.TransactionType
- func CreatedAtLT(v time.Time) predicate.TransactionType
- func CreatedAtLTE(v time.Time) predicate.TransactionType
- func CreatedAtNEQ(v time.Time) predicate.TransactionType
- func CreatedAtNotIn(vs ...time.Time) predicate.TransactionType
- func DeletedAt(v time.Time) predicate.TransactionType
- func DeletedAtEQ(v time.Time) predicate.TransactionType
- func DeletedAtGT(v time.Time) predicate.TransactionType
- func DeletedAtGTE(v time.Time) predicate.TransactionType
- func DeletedAtIn(vs ...time.Time) predicate.TransactionType
- func DeletedAtIsNil() predicate.TransactionType
- func DeletedAtLT(v time.Time) predicate.TransactionType
- func DeletedAtLTE(v time.Time) predicate.TransactionType
- func DeletedAtNEQ(v time.Time) predicate.TransactionType
- func DeletedAtNotIn(vs ...time.Time) predicate.TransactionType
- func DeletedAtNotNil() predicate.TransactionType
- func Description(v string) predicate.TransactionType
- func DescriptionContains(v string) predicate.TransactionType
- func DescriptionContainsFold(v string) predicate.TransactionType
- func DescriptionEQ(v string) predicate.TransactionType
- func DescriptionEqualFold(v string) predicate.TransactionType
- func DescriptionGT(v string) predicate.TransactionType
- func DescriptionGTE(v string) predicate.TransactionType
- func DescriptionHasPrefix(v string) predicate.TransactionType
- func DescriptionHasSuffix(v string) predicate.TransactionType
- func DescriptionIn(vs ...string) predicate.TransactionType
- func DescriptionIsNil() predicate.TransactionType
- func DescriptionLT(v string) predicate.TransactionType
- func DescriptionLTE(v string) predicate.TransactionType
- func DescriptionNEQ(v string) predicate.TransactionType
- func DescriptionNotIn(vs ...string) predicate.TransactionType
- func DescriptionNotNil() predicate.TransactionType
- func ID(id pulid.PULID) predicate.TransactionType
- func IDEQ(id pulid.PULID) predicate.TransactionType
- func IDGT(id pulid.PULID) predicate.TransactionType
- func IDGTE(id pulid.PULID) predicate.TransactionType
- func IDIn(ids ...pulid.PULID) predicate.TransactionType
- func IDLT(id pulid.PULID) predicate.TransactionType
- func IDLTE(id pulid.PULID) predicate.TransactionType
- func IDNEQ(id pulid.PULID) predicate.TransactionType
- func IDNotIn(ids ...pulid.PULID) predicate.TransactionType
- func Not(p predicate.TransactionType) predicate.TransactionType
- func Or(predicates ...predicate.TransactionType) predicate.TransactionType
- func UpdatedAt(v time.Time) predicate.TransactionType
- func UpdatedAtEQ(v time.Time) predicate.TransactionType
- func UpdatedAtGT(v time.Time) predicate.TransactionType
- func UpdatedAtGTE(v time.Time) predicate.TransactionType
- func UpdatedAtIn(vs ...time.Time) predicate.TransactionType
- func UpdatedAtLT(v time.Time) predicate.TransactionType
- func UpdatedAtLTE(v time.Time) predicate.TransactionType
- func UpdatedAtNEQ(v time.Time) predicate.TransactionType
- func UpdatedAtNotIn(vs ...time.Time) predicate.TransactionType
- func ValidColumn(column string) bool
- func ValueEQ(v Value) predicate.TransactionType
- func ValueIn(vs ...Value) predicate.TransactionType
- func ValueNEQ(v Value) predicate.TransactionType
- func ValueNotIn(vs ...Value) predicate.TransactionType
- func ValueValidator(v Value) error
- type Value
Constants ¶
const ( // Label holds the string label denoting the transactiontype type in the database. Label = "transaction_type" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // Table holds the table name of the transactiontype in the database. Table = "transaction_types" )
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 // UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field. UpdateDefaultDeletedAt func() time.Time // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() pulid.PULID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldValue, FieldDescription, }
Columns holds all SQL columns for transactiontype fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TransactionType) predicate.TransactionType
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.TransactionType
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.TransactionType
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.TransactionType
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.TransactionType
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.TransactionType
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.TransactionType
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.TransactionType
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.TransactionType
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.TransactionType
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.TransactionType
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.TransactionType
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.TransactionType
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.TransactionType
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.TransactionType
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.TransactionType
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.TransactionType
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.TransactionType
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.TransactionType
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.TransactionType
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.TransactionType
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
func Description(v string) predicate.TransactionType
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.TransactionType
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.TransactionType
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.TransactionType
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.TransactionType
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.TransactionType
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.TransactionType
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.TransactionType
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.TransactionType
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.TransactionType
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.TransactionType
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.TransactionType
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.TransactionType
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.TransactionType
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.TransactionType
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.TransactionType
DescriptionNotNil applies the NotNil predicate on the "description" field.
func ID ¶
func ID(id pulid.PULID) predicate.TransactionType
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id pulid.PULID) predicate.TransactionType
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id pulid.PULID) predicate.TransactionType
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id pulid.PULID) predicate.TransactionType
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...pulid.PULID) predicate.TransactionType
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id pulid.PULID) predicate.TransactionType
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id pulid.PULID) predicate.TransactionType
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id pulid.PULID) predicate.TransactionType
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...pulid.PULID) predicate.TransactionType
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TransactionType) predicate.TransactionType
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TransactionType) predicate.TransactionType
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.TransactionType
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.TransactionType
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.TransactionType
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.TransactionType
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.TransactionType
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.TransactionType
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.TransactionType
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.TransactionType
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.TransactionType
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).
func ValueEQ ¶
func ValueEQ(v Value) predicate.TransactionType
ValueEQ applies the EQ predicate on the "value" field.
func ValueIn ¶
func ValueIn(vs ...Value) predicate.TransactionType
ValueIn applies the In predicate on the "value" field.
func ValueNEQ ¶
func ValueNEQ(v Value) predicate.TransactionType
ValueNEQ applies the NEQ predicate on the "value" field.
func ValueNotIn ¶
func ValueNotIn(vs ...Value) predicate.TransactionType
ValueNotIn applies the NotIn predicate on the "value" field.
func ValueValidator ¶
ValueValidator is a validator for the "value" field enum values. It is called by the builders before save.
Types ¶
type Value ¶
type Value string
Value defines the type for the "value" enum field.
const ( ValueBuy Value = "BUY" ValueSell Value = "SELL" ValueSwap Value = "SWAP" ValueStake Value = "STAKE" ValueDividendIncome Value = "DIVIDEND_INCOME" ValueRentPayment Value = "RENT_PAYMENT" ValueRentIncome Value = "RENT_INCOME" ValueStockDividend Value = "STOCK_DIVIDEND" )
Value values.
func (Value) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Value) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.