example2

package
v1.0.0-beta.95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for example2 fields.

Functions

func And

func And(predicates ...predicate.Example2) predicate.Example2

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Example2

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Example2

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Example2

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Example2

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Example2

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Example2

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Example2

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Example2

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Example2

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Example2

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Example2

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Example2

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Example2

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Example2

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Example2

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Example2

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Example2

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Example2

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Example2

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Example2

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ExampleValue2

func ExampleValue2(v string) predicate.Example2

ExampleValue2 applies equality check predicate on the "example_value_2" field. It's identical to ExampleValue2EQ.

func ExampleValue2Contains

func ExampleValue2Contains(v string) predicate.Example2

ExampleValue2Contains applies the Contains predicate on the "example_value_2" field.

func ExampleValue2ContainsFold

func ExampleValue2ContainsFold(v string) predicate.Example2

ExampleValue2ContainsFold applies the ContainsFold predicate on the "example_value_2" field.

func ExampleValue2EQ

func ExampleValue2EQ(v string) predicate.Example2

ExampleValue2EQ applies the EQ predicate on the "example_value_2" field.

func ExampleValue2EqualFold

func ExampleValue2EqualFold(v string) predicate.Example2

ExampleValue2EqualFold applies the EqualFold predicate on the "example_value_2" field.

func ExampleValue2GT

func ExampleValue2GT(v string) predicate.Example2

ExampleValue2GT applies the GT predicate on the "example_value_2" field.

func ExampleValue2GTE

func ExampleValue2GTE(v string) predicate.Example2

ExampleValue2GTE applies the GTE predicate on the "example_value_2" field.

func ExampleValue2HasPrefix

func ExampleValue2HasPrefix(v string) predicate.Example2

ExampleValue2HasPrefix applies the HasPrefix predicate on the "example_value_2" field.

func ExampleValue2HasSuffix

func ExampleValue2HasSuffix(v string) predicate.Example2

ExampleValue2HasSuffix applies the HasSuffix predicate on the "example_value_2" field.

func ExampleValue2In

func ExampleValue2In(vs ...string) predicate.Example2

ExampleValue2In applies the In predicate on the "example_value_2" field.

func ExampleValue2LT

func ExampleValue2LT(v string) predicate.Example2

ExampleValue2LT applies the LT predicate on the "example_value_2" field.

func ExampleValue2LTE

func ExampleValue2LTE(v string) predicate.Example2

ExampleValue2LTE applies the LTE predicate on the "example_value_2" field.

func ExampleValue2NEQ

func ExampleValue2NEQ(v string) predicate.Example2

ExampleValue2NEQ applies the NEQ predicate on the "example_value_2" field.

func ExampleValue2NotIn

func ExampleValue2NotIn(vs ...string) predicate.Example2

ExampleValue2NotIn applies the NotIn predicate on the "example_value_2" field.

func ID

func ID(id string) predicate.Example2

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Example2

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Example2

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Example2

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Example2

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Example2

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Example2

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Example2

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Example2

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Example2

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Example2

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Example2) predicate.Example2

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Example2

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Example2

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Example2

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Example2

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Example2

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Example2

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Example2

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Example2

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Example2

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL