Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.World) predicate.World
- func DeletedAt(v time.Time) predicate.World
- func DeletedAtEQ(v time.Time) predicate.World
- func DeletedAtGT(v time.Time) predicate.World
- func DeletedAtGTE(v time.Time) predicate.World
- func DeletedAtIn(vs ...time.Time) predicate.World
- func DeletedAtIsNil() predicate.World
- func DeletedAtLT(v time.Time) predicate.World
- func DeletedAtLTE(v time.Time) predicate.World
- func DeletedAtNEQ(v time.Time) predicate.World
- func DeletedAtNotIn(vs ...time.Time) predicate.World
- func DeletedAtNotNil() predicate.World
- func ID(id int) predicate.World
- func IDEQ(id int) predicate.World
- func IDGT(id int) predicate.World
- func IDGTE(id int) predicate.World
- func IDIn(ids ...int) predicate.World
- func IDLT(id int) predicate.World
- func IDLTE(id int) predicate.World
- func IDNEQ(id int) predicate.World
- func IDNotIn(ids ...int) predicate.World
- func Name(v string) predicate.World
- func NameContains(v string) predicate.World
- func NameContainsFold(v string) predicate.World
- func NameEQ(v string) predicate.World
- func NameEqualFold(v string) predicate.World
- func NameGT(v string) predicate.World
- func NameGTE(v string) predicate.World
- func NameHasPrefix(v string) predicate.World
- func NameHasSuffix(v string) predicate.World
- func NameIn(vs ...string) predicate.World
- func NameLT(v string) predicate.World
- func NameLTE(v string) predicate.World
- func NameNEQ(v string) predicate.World
- func NameNotIn(vs ...string) predicate.World
- func Not(p predicate.World) predicate.World
- func Or(predicates ...predicate.World) predicate.World
- func PowerBy(v string) predicate.World
- func PowerByContains(v string) predicate.World
- func PowerByContainsFold(v string) predicate.World
- func PowerByEQ(v string) predicate.World
- func PowerByEqualFold(v string) predicate.World
- func PowerByGT(v string) predicate.World
- func PowerByGTE(v string) predicate.World
- func PowerByHasPrefix(v string) predicate.World
- func PowerByHasSuffix(v string) predicate.World
- func PowerByIn(vs ...string) predicate.World
- func PowerByIsNil() predicate.World
- func PowerByLT(v string) predicate.World
- func PowerByLTE(v string) predicate.World
- func PowerByNEQ(v string) predicate.World
- func PowerByNotIn(vs ...string) predicate.World
- func PowerByNotNil() predicate.World
- func TenantID(v int) predicate.World
- func TenantIDEQ(v int) predicate.World
- func TenantIDGT(v int) predicate.World
- func TenantIDGTE(v int) predicate.World
- func TenantIDIn(vs ...int) predicate.World
- func TenantIDLT(v int) predicate.World
- func TenantIDLTE(v int) predicate.World
- func TenantIDNEQ(v int) predicate.World
- func TenantIDNotIn(vs ...int) predicate.World
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldTenantID, FieldDeletedAt, FieldName, FieldPowerBy, }
Columns holds all SQL columns for world fields.
Functions ¶
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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PowerBy ¶
PowerBy applies equality check predicate on the "power_by" field. It's identical to PowerByEQ.
func PowerByContains ¶
PowerByContains applies the Contains predicate on the "power_by" field.
func PowerByContainsFold ¶
PowerByContainsFold applies the ContainsFold predicate on the "power_by" field.
func PowerByEqualFold ¶
PowerByEqualFold applies the EqualFold predicate on the "power_by" field.
func PowerByGTE ¶
PowerByGTE applies the GTE predicate on the "power_by" field.
func PowerByHasPrefix ¶
PowerByHasPrefix applies the HasPrefix predicate on the "power_by" field.
func PowerByHasSuffix ¶
PowerByHasSuffix applies the HasSuffix predicate on the "power_by" field.
func PowerByIsNil ¶
PowerByIsNil applies the IsNil predicate on the "power_by" field.
func PowerByLTE ¶
PowerByLTE applies the LTE predicate on the "power_by" field.
func PowerByNEQ ¶
PowerByNEQ applies the NEQ predicate on the "power_by" field.
func PowerByNotIn ¶
PowerByNotIn applies the NotIn predicate on the "power_by" field.
func PowerByNotNil ¶
PowerByNotNil applies the NotNil predicate on the "power_by" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" 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 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.