Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Note) predicate.Note
- func Content(v string) predicate.Note
- func ContentContains(v string) predicate.Note
- func ContentContainsFold(v string) predicate.Note
- func ContentEQ(v string) predicate.Note
- func ContentEqualFold(v string) predicate.Note
- func ContentGT(v string) predicate.Note
- func ContentGTE(v string) predicate.Note
- func ContentHasPrefix(v string) predicate.Note
- func ContentHasSuffix(v string) predicate.Note
- func ContentIn(vs ...string) predicate.Note
- func ContentLT(v string) predicate.Note
- func ContentLTE(v string) predicate.Note
- func ContentNEQ(v string) predicate.Note
- func ContentNotIn(vs ...string) predicate.Note
- func CreatedAt(v time.Time) predicate.Note
- func CreatedAtEQ(v time.Time) predicate.Note
- func CreatedAtGT(v time.Time) predicate.Note
- func CreatedAtGTE(v time.Time) predicate.Note
- func CreatedAtIn(vs ...time.Time) predicate.Note
- func CreatedAtLT(v time.Time) predicate.Note
- func CreatedAtLTE(v time.Time) predicate.Note
- func CreatedAtNEQ(v time.Time) predicate.Note
- func CreatedAtNotIn(vs ...time.Time) predicate.Note
- func HasBillingAddress() predicate.Note
- func HasBillingAddressWith(preds ...predicate.BillingAddress) predicate.Note
- func HasCustomer() predicate.Note
- func HasCustomerWith(preds ...predicate.Customer) predicate.Note
- func HasDeliveryAddress() predicate.Note
- func HasDeliveryAddressWith(preds ...predicate.DeliveryAddress) predicate.Note
- func HasOrders() predicate.Note
- func HasOrdersWith(preds ...predicate.Order) predicate.Note
- func HasTel() predicate.Note
- func HasTelWith(preds ...predicate.Tel) predicate.Note
- func ID(id int) predicate.Note
- func IDEQ(id int) predicate.Note
- func IDGT(id int) predicate.Note
- func IDGTE(id int) predicate.Note
- func IDIn(ids ...int) predicate.Note
- func IDLT(id int) predicate.Note
- func IDLTE(id int) predicate.Note
- func IDNEQ(id int) predicate.Note
- func IDNotIn(ids ...int) predicate.Note
- func Not(p predicate.Note) predicate.Note
- func Or(predicates ...predicate.Note) predicate.Note
- func UpdatedAt(v time.Time) predicate.Note
- func UpdatedAtEQ(v time.Time) predicate.Note
- func UpdatedAtGT(v time.Time) predicate.Note
- func UpdatedAtGTE(v time.Time) predicate.Note
- func UpdatedAtIn(vs ...time.Time) predicate.Note
- func UpdatedAtLT(v time.Time) predicate.Note
- func UpdatedAtLTE(v time.Time) predicate.Note
- func UpdatedAtNEQ(v time.Time) predicate.Note
- func UpdatedAtNotIn(vs ...time.Time) predicate.Note
- func ValidColumn(column string) bool
- type OrderOption
- func ByBillingAddressField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDeliveryAddressField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrdersField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the note type in the database. Label = "note" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // 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" // EdgeCustomer holds the string denoting the customer edge name in mutations. EdgeCustomer = "customer" // EdgeOrders holds the string denoting the orders edge name in mutations. EdgeOrders = "orders" // EdgeBillingAddress holds the string denoting the billing_address edge name in mutations. EdgeBillingAddress = "billing_address" // EdgeDeliveryAddress holds the string denoting the delivery_address edge name in mutations. EdgeDeliveryAddress = "delivery_address" // EdgeTel holds the string denoting the tel edge name in mutations. EdgeTel = "tel" // Table holds the table name of the note in the database. Table = "notes" // CustomerTable is the table that holds the customer relation/edge. CustomerTable = "notes" // CustomerInverseTable is the table name for the Customer entity. // It exists in this package in order to avoid circular dependency with the "customer" package. CustomerInverseTable = "customers" // CustomerColumn is the table column denoting the customer relation/edge. CustomerColumn = "customer_notes" // OrdersTable is the table that holds the orders relation/edge. OrdersTable = "notes" // OrdersInverseTable is the table name for the Order entity. // It exists in this package in order to avoid circular dependency with the "order" package. OrdersInverseTable = "orders" // OrdersColumn is the table column denoting the orders relation/edge. OrdersColumn = "order_notes" // BillingAddressTable is the table that holds the billing_address relation/edge. BillingAddressTable = "notes" // BillingAddressInverseTable is the table name for the BillingAddress entity. // It exists in this package in order to avoid circular dependency with the "billingaddress" package. BillingAddressInverseTable = "billing_addresses" // BillingAddressColumn is the table column denoting the billing_address relation/edge. BillingAddressColumn = "billing_address_notes" // DeliveryAddressTable is the table that holds the delivery_address relation/edge. DeliveryAddressTable = "notes" // DeliveryAddressInverseTable is the table name for the DeliveryAddress entity. // It exists in this package in order to avoid circular dependency with the "deliveryaddress" package. DeliveryAddressInverseTable = "delivery_addresses" // DeliveryAddressColumn is the table column denoting the delivery_address relation/edge. DeliveryAddressColumn = "delivery_address_notes" // TelTable is the table that holds the tel relation/edge. TelTable = "notes" // TelInverseTable is the table name for the Tel entity. // It exists in this package in order to avoid circular dependency with the "tel" package. TelInverseTable = "tels" // TelColumn is the table column denoting the tel relation/edge. TelColumn = "tel_note" )
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, FieldContent, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for note fields.
var ForeignKeys = []string{
"billing_address_notes",
"customer_notes",
"delivery_address_notes",
"order_notes",
"tel_note",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "notes" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 HasBillingAddress ¶
HasBillingAddress applies the HasEdge predicate on the "billing_address" edge.
func HasBillingAddressWith ¶
func HasBillingAddressWith(preds ...predicate.BillingAddress) predicate.Note
HasBillingAddressWith applies the HasEdge predicate on the "billing_address" edge with a given conditions (other predicates).
func HasCustomer ¶
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func HasDeliveryAddress ¶
HasDeliveryAddress applies the HasEdge predicate on the "delivery_address" edge.
func HasDeliveryAddressWith ¶
func HasDeliveryAddressWith(preds ...predicate.DeliveryAddress) predicate.Note
HasDeliveryAddressWith applies the HasEdge predicate on the "delivery_address" edge with a given conditions (other predicates).
func HasOrdersWith ¶
HasOrdersWith applies the HasEdge predicate on the "orders" edge with a given conditions (other predicates).
func HasTelWith ¶
HasTelWith applies the HasEdge predicate on the "tel" edge with a given conditions (other predicates).
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 OrderOption ¶
OrderOption defines the ordering options for the Note queries.
func ByBillingAddressField ¶
func ByBillingAddressField(field string, opts ...sql.OrderTermOption) OrderOption
ByBillingAddressField orders the results by billing_address field.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCustomerField ¶
func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
ByCustomerField orders the results by customer field.
func ByDeliveryAddressField ¶
func ByDeliveryAddressField(field string, opts ...sql.OrderTermOption) OrderOption
ByDeliveryAddressField orders the results by delivery_address field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrdersField ¶
func ByOrdersField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrdersField orders the results by orders field.
func ByTelField ¶
func ByTelField(field string, opts ...sql.OrderTermOption) OrderOption
ByTelField orders the results by tel field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.