Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Example1) predicate.Example1
- func CreatedAt(v time.Time) predicate.Example1
- func CreatedAtEQ(v time.Time) predicate.Example1
- func CreatedAtGT(v time.Time) predicate.Example1
- func CreatedAtGTE(v time.Time) predicate.Example1
- func CreatedAtIn(vs ...time.Time) predicate.Example1
- func CreatedAtLT(v time.Time) predicate.Example1
- func CreatedAtLTE(v time.Time) predicate.Example1
- func CreatedAtNEQ(v time.Time) predicate.Example1
- func CreatedAtNotIn(vs ...time.Time) predicate.Example1
- func DeletedAt(v time.Time) predicate.Example1
- func DeletedAtEQ(v time.Time) predicate.Example1
- func DeletedAtGT(v time.Time) predicate.Example1
- func DeletedAtGTE(v time.Time) predicate.Example1
- func DeletedAtIn(vs ...time.Time) predicate.Example1
- func DeletedAtIsNil() predicate.Example1
- func DeletedAtLT(v time.Time) predicate.Example1
- func DeletedAtLTE(v time.Time) predicate.Example1
- func DeletedAtNEQ(v time.Time) predicate.Example1
- func DeletedAtNotIn(vs ...time.Time) predicate.Example1
- func DeletedAtNotNil() predicate.Example1
- func ExampleValue1(v string) predicate.Example1
- func ExampleValue1Contains(v string) predicate.Example1
- func ExampleValue1ContainsFold(v string) predicate.Example1
- func ExampleValue1EQ(v string) predicate.Example1
- func ExampleValue1EqualFold(v string) predicate.Example1
- func ExampleValue1GT(v string) predicate.Example1
- func ExampleValue1GTE(v string) predicate.Example1
- func ExampleValue1HasPrefix(v string) predicate.Example1
- func ExampleValue1HasSuffix(v string) predicate.Example1
- func ExampleValue1In(vs ...string) predicate.Example1
- func ExampleValue1LT(v string) predicate.Example1
- func ExampleValue1LTE(v string) predicate.Example1
- func ExampleValue1NEQ(v string) predicate.Example1
- func ExampleValue1NotIn(vs ...string) predicate.Example1
- func ID(id string) predicate.Example1
- func IDContainsFold(id string) predicate.Example1
- func IDEQ(id string) predicate.Example1
- func IDEqualFold(id string) predicate.Example1
- func IDGT(id string) predicate.Example1
- func IDGTE(id string) predicate.Example1
- func IDIn(ids ...string) predicate.Example1
- func IDLT(id string) predicate.Example1
- func IDLTE(id string) predicate.Example1
- func IDNEQ(id string) predicate.Example1
- func IDNotIn(ids ...string) predicate.Example1
- func Not(p predicate.Example1) predicate.Example1
- func Or(predicates ...predicate.Example1) predicate.Example1
- func UpdatedAt(v time.Time) predicate.Example1
- func UpdatedAtEQ(v time.Time) predicate.Example1
- func UpdatedAtGT(v time.Time) predicate.Example1
- func UpdatedAtGTE(v time.Time) predicate.Example1
- func UpdatedAtIn(vs ...time.Time) predicate.Example1
- func UpdatedAtLT(v time.Time) predicate.Example1
- func UpdatedAtLTE(v time.Time) predicate.Example1
- func UpdatedAtNEQ(v time.Time) predicate.Example1
- func UpdatedAtNotIn(vs ...time.Time) predicate.Example1
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the example1 type in the database. Label = "example1" // 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" // FieldExampleValue1 holds the string denoting the example_value_1 field in the database. FieldExampleValue1 = "example_value_1" // Table holds the table name of the example1 in the database. Table = "example1s" )
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, FieldExampleValue1, }
Columns holds all SQL columns for example1 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 ExampleValue1 ¶
ExampleValue1 applies equality check predicate on the "example_value_1" field. It's identical to ExampleValue1EQ.
func ExampleValue1Contains ¶
ExampleValue1Contains applies the Contains predicate on the "example_value_1" field.
func ExampleValue1ContainsFold ¶
ExampleValue1ContainsFold applies the ContainsFold predicate on the "example_value_1" field.
func ExampleValue1EQ ¶
ExampleValue1EQ applies the EQ predicate on the "example_value_1" field.
func ExampleValue1EqualFold ¶
ExampleValue1EqualFold applies the EqualFold predicate on the "example_value_1" field.
func ExampleValue1GT ¶
ExampleValue1GT applies the GT predicate on the "example_value_1" field.
func ExampleValue1GTE ¶
ExampleValue1GTE applies the GTE predicate on the "example_value_1" field.
func ExampleValue1HasPrefix ¶
ExampleValue1HasPrefix applies the HasPrefix predicate on the "example_value_1" field.
func ExampleValue1HasSuffix ¶
ExampleValue1HasSuffix applies the HasSuffix predicate on the "example_value_1" field.
func ExampleValue1In ¶
ExampleValue1In applies the In predicate on the "example_value_1" field.
func ExampleValue1LT ¶
ExampleValue1LT applies the LT predicate on the "example_value_1" field.
func ExampleValue1LTE ¶
ExampleValue1LTE applies the LTE predicate on the "example_value_1" field.
func ExampleValue1NEQ ¶
ExampleValue1NEQ applies the NEQ predicate on the "example_value_1" field.
func ExampleValue1NotIn ¶
ExampleValue1NotIn applies the NotIn predicate on the "example_value_1" 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 Example1 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 ByExampleValue1 ¶
func ByExampleValue1(opts ...sql.OrderTermOption) OrderOption
ByExampleValue1 orders the results by the example_value_1 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.