Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Example2) predicate.Example2
- func CreatedAt(v time.Time) predicate.Example2
- func CreatedAtEQ(v time.Time) predicate.Example2
- func CreatedAtGT(v time.Time) predicate.Example2
- func CreatedAtGTE(v time.Time) predicate.Example2
- func CreatedAtIn(vs ...time.Time) predicate.Example2
- func CreatedAtLT(v time.Time) predicate.Example2
- func CreatedAtLTE(v time.Time) predicate.Example2
- func CreatedAtNEQ(v time.Time) predicate.Example2
- func CreatedAtNotIn(vs ...time.Time) predicate.Example2
- func DeletedAt(v time.Time) predicate.Example2
- func DeletedAtEQ(v time.Time) predicate.Example2
- func DeletedAtGT(v time.Time) predicate.Example2
- func DeletedAtGTE(v time.Time) predicate.Example2
- func DeletedAtIn(vs ...time.Time) predicate.Example2
- func DeletedAtIsNil() predicate.Example2
- func DeletedAtLT(v time.Time) predicate.Example2
- func DeletedAtLTE(v time.Time) predicate.Example2
- func DeletedAtNEQ(v time.Time) predicate.Example2
- func DeletedAtNotIn(vs ...time.Time) predicate.Example2
- func DeletedAtNotNil() predicate.Example2
- func ExampleValue2(v string) predicate.Example2
- func ExampleValue2Contains(v string) predicate.Example2
- func ExampleValue2ContainsFold(v string) predicate.Example2
- func ExampleValue2EQ(v string) predicate.Example2
- func ExampleValue2EqualFold(v string) predicate.Example2
- func ExampleValue2GT(v string) predicate.Example2
- func ExampleValue2GTE(v string) predicate.Example2
- func ExampleValue2HasPrefix(v string) predicate.Example2
- func ExampleValue2HasSuffix(v string) predicate.Example2
- func ExampleValue2In(vs ...string) predicate.Example2
- func ExampleValue2LT(v string) predicate.Example2
- func ExampleValue2LTE(v string) predicate.Example2
- func ExampleValue2NEQ(v string) predicate.Example2
- func ExampleValue2NotIn(vs ...string) predicate.Example2
- func ID(id string) predicate.Example2
- func IDContainsFold(id string) predicate.Example2
- func IDEQ(id string) predicate.Example2
- func IDEqualFold(id string) predicate.Example2
- func IDGT(id string) predicate.Example2
- func IDGTE(id string) predicate.Example2
- func IDIn(ids ...string) predicate.Example2
- func IDLT(id string) predicate.Example2
- func IDLTE(id string) predicate.Example2
- func IDNEQ(id string) predicate.Example2
- func IDNotIn(ids ...string) predicate.Example2
- func Not(p predicate.Example2) predicate.Example2
- func Or(predicates ...predicate.Example2) predicate.Example2
- func UpdatedAt(v time.Time) predicate.Example2
- func UpdatedAtEQ(v time.Time) predicate.Example2
- func UpdatedAtGT(v time.Time) predicate.Example2
- func UpdatedAtGTE(v time.Time) predicate.Example2
- func UpdatedAtIn(vs ...time.Time) predicate.Example2
- func UpdatedAtLT(v time.Time) predicate.Example2
- func UpdatedAtLTE(v time.Time) predicate.Example2
- func UpdatedAtNEQ(v time.Time) predicate.Example2
- func UpdatedAtNotIn(vs ...time.Time) predicate.Example2
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the example2 type in the database. Label = "example2" // 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" // FieldExampleValue2 holds the string denoting the example_value_2 field in the database. FieldExampleValue2 = "example_value_2" // Table holds the table name of the example2 in the database. Table = "example2s" )
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, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldExampleValue2, }
Columns holds all SQL columns for example2 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 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 ExampleValue2 ¶
ExampleValue2 applies equality check predicate on the "example_value_2" field. It's identical to ExampleValue2EQ.
func ExampleValue2Contains ¶
ExampleValue2Contains applies the Contains predicate on the "example_value_2" field.
func ExampleValue2ContainsFold ¶
ExampleValue2ContainsFold applies the ContainsFold predicate on the "example_value_2" field.
func ExampleValue2EQ ¶
ExampleValue2EQ applies the EQ predicate on the "example_value_2" field.
func ExampleValue2EqualFold ¶
ExampleValue2EqualFold applies the EqualFold predicate on the "example_value_2" field.
func ExampleValue2GT ¶
ExampleValue2GT applies the GT predicate on the "example_value_2" field.
func ExampleValue2GTE ¶
ExampleValue2GTE applies the GTE predicate on the "example_value_2" field.
func ExampleValue2HasPrefix ¶
ExampleValue2HasPrefix applies the HasPrefix predicate on the "example_value_2" field.
func ExampleValue2HasSuffix ¶
ExampleValue2HasSuffix applies the HasSuffix predicate on the "example_value_2" field.
func ExampleValue2In ¶
ExampleValue2In applies the In predicate on the "example_value_2" field.
func ExampleValue2LT ¶
ExampleValue2LT applies the LT predicate on the "example_value_2" field.
func ExampleValue2LTE ¶
ExampleValue2LTE applies the LTE predicate on the "example_value_2" field.
func ExampleValue2NEQ ¶
ExampleValue2NEQ applies the NEQ predicate on the "example_value_2" field.
func ExampleValue2NotIn ¶
ExampleValue2NotIn applies the NotIn predicate on the "example_value_2" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
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 Example2 queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByExampleValue2 ¶
func ByExampleValue2(opts ...sql.OrderTermOption) OrderOption
ByExampleValue2 orders the results by the example_value_2 field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.