world

package
v0.0.0-...-f75e619 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the world type in the database.
	Label = "world"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPowerBy holds the string denoting the power_by field in the database.
	FieldPowerBy = "power_by"
	// Table holds the table name of the world in the database.
	Table = "worlds"
)

Variables

View Source
var (
	Hooks        [2]ent.Hook
	Interceptors [2]ent.Interceptor
	// DefaultPowerBy holds the default value on creation for the "power_by" field.
	DefaultPowerBy string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout-go/integration/helloapp/ent/runtime"

Columns holds all SQL columns for world fields.

Functions

func And

func And(predicates ...predicate.World) predicate.World

And groups predicates with the AND operator between them.

func DeletedAt

func DeletedAt(v time.Time) predicate.World

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.World

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.World

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.World

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.World

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.World

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.World

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.World

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.World

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

func ID

func ID(id int) predicate.World

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.World

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.World

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.World

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.World

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.World

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.World

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.World

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.World

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.World

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.World

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.World

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.World

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.World

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.World

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.World

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.World

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.World

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.World

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.World

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.World

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.World

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.World

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.World) predicate.World

Or groups predicates with the OR operator between them.

func PowerBy

func PowerBy(v string) predicate.World

PowerBy applies equality check predicate on the "power_by" field. It's identical to PowerByEQ.

func PowerByContains

func PowerByContains(v string) predicate.World

PowerByContains applies the Contains predicate on the "power_by" field.

func PowerByContainsFold

func PowerByContainsFold(v string) predicate.World

PowerByContainsFold applies the ContainsFold predicate on the "power_by" field.

func PowerByEQ

func PowerByEQ(v string) predicate.World

PowerByEQ applies the EQ predicate on the "power_by" field.

func PowerByEqualFold

func PowerByEqualFold(v string) predicate.World

PowerByEqualFold applies the EqualFold predicate on the "power_by" field.

func PowerByGT

func PowerByGT(v string) predicate.World

PowerByGT applies the GT predicate on the "power_by" field.

func PowerByGTE

func PowerByGTE(v string) predicate.World

PowerByGTE applies the GTE predicate on the "power_by" field.

func PowerByHasPrefix

func PowerByHasPrefix(v string) predicate.World

PowerByHasPrefix applies the HasPrefix predicate on the "power_by" field.

func PowerByHasSuffix

func PowerByHasSuffix(v string) predicate.World

PowerByHasSuffix applies the HasSuffix predicate on the "power_by" field.

func PowerByIn

func PowerByIn(vs ...string) predicate.World

PowerByIn applies the In predicate on the "power_by" field.

func PowerByIsNil

func PowerByIsNil() predicate.World

PowerByIsNil applies the IsNil predicate on the "power_by" field.

func PowerByLT

func PowerByLT(v string) predicate.World

PowerByLT applies the LT predicate on the "power_by" field.

func PowerByLTE

func PowerByLTE(v string) predicate.World

PowerByLTE applies the LTE predicate on the "power_by" field.

func PowerByNEQ

func PowerByNEQ(v string) predicate.World

PowerByNEQ applies the NEQ predicate on the "power_by" field.

func PowerByNotIn

func PowerByNotIn(vs ...string) predicate.World

PowerByNotIn applies the NotIn predicate on the "power_by" field.

func PowerByNotNil

func PowerByNotNil() predicate.World

PowerByNotNil applies the NotNil predicate on the "power_by" field.

func TenantID

func TenantID(v int) predicate.World

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDEQ

func TenantIDEQ(v int) predicate.World

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v int) predicate.World

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v int) predicate.World

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...int) predicate.World

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v int) predicate.World

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v int) predicate.World

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v int) predicate.World

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...int) predicate.World

TenantIDNotIn applies the NotIn predicate on the "tenant_id" 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 World queries.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByPowerBy

func ByPowerBy(opts ...sql.OrderTermOption) OrderOption

ByPowerBy orders the results by the power_by field.

func ByTenantID

func ByTenantID(opts ...sql.OrderTermOption) OrderOption

ByTenantID orders the results by the tenant_id field.

Jump to

Keyboard shortcuts

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