Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Post) predicate.Post
- func Description(v string) predicate.Post
- func DescriptionContains(v string) predicate.Post
- func DescriptionContainsFold(v string) predicate.Post
- func DescriptionEQ(v string) predicate.Post
- func DescriptionEqualFold(v string) predicate.Post
- func DescriptionGT(v string) predicate.Post
- func DescriptionGTE(v string) predicate.Post
- func DescriptionHasPrefix(v string) predicate.Post
- func DescriptionHasSuffix(v string) predicate.Post
- func DescriptionIn(vs ...string) predicate.Post
- func DescriptionIsNil() predicate.Post
- func DescriptionLT(v string) predicate.Post
- func DescriptionLTE(v string) predicate.Post
- func DescriptionNEQ(v string) predicate.Post
- func DescriptionNotIn(vs ...string) predicate.Post
- func DescriptionNotNil() predicate.Post
- func Dsn(v string) predicate.Post
- func DsnContains(v string) predicate.Post
- func DsnContainsFold(v string) predicate.Post
- func DsnEQ(v string) predicate.Post
- func DsnEqualFold(v string) predicate.Post
- func DsnGT(v string) predicate.Post
- func DsnGTE(v string) predicate.Post
- func DsnHasPrefix(v string) predicate.Post
- func DsnHasSuffix(v string) predicate.Post
- func DsnIn(vs ...string) predicate.Post
- func DsnIsNil() predicate.Post
- func DsnLT(v string) predicate.Post
- func DsnLTE(v string) predicate.Post
- func DsnNEQ(v string) predicate.Post
- func DsnNotIn(vs ...string) predicate.Post
- func DsnNotNil() predicate.Post
- func ID(id int) predicate.Post
- func IDEQ(id int) predicate.Post
- func IDGT(id int) predicate.Post
- func IDGTE(id int) predicate.Post
- func IDIn(ids ...int) predicate.Post
- func IDLT(id int) predicate.Post
- func IDLTE(id int) predicate.Post
- func IDNEQ(id int) predicate.Post
- func IDNotIn(ids ...int) predicate.Post
- func Not(p predicate.Post) predicate.Post
- func Or(predicates ...predicate.Post) predicate.Post
- func TenantID(v *sql.NullString) predicate.Post
- func TenantIDContains(v *sql.NullString) predicate.Post
- func TenantIDContainsFold(v *sql.NullString) predicate.Post
- func TenantIDEQ(v *sql.NullString) predicate.Post
- func TenantIDEqualFold(v *sql.NullString) predicate.Post
- func TenantIDGT(v *sql.NullString) predicate.Post
- func TenantIDGTE(v *sql.NullString) predicate.Post
- func TenantIDHasPrefix(v *sql.NullString) predicate.Post
- func TenantIDHasSuffix(v *sql.NullString) predicate.Post
- func TenantIDIn(vs ...*sql.NullString) predicate.Post
- func TenantIDIsNil() predicate.Post
- func TenantIDLT(v *sql.NullString) predicate.Post
- func TenantIDLTE(v *sql.NullString) predicate.Post
- func TenantIDNEQ(v *sql.NullString) predicate.Post
- func TenantIDNotIn(vs ...*sql.NullString) predicate.Post
- func TenantIDNotNil() predicate.Post
- func Title(v string) predicate.Post
- func TitleContains(v string) predicate.Post
- func TitleContainsFold(v string) predicate.Post
- func TitleEQ(v string) predicate.Post
- func TitleEqualFold(v string) predicate.Post
- func TitleGT(v string) predicate.Post
- func TitleGTE(v string) predicate.Post
- func TitleHasPrefix(v string) predicate.Post
- func TitleHasSuffix(v string) predicate.Post
- func TitleIn(vs ...string) predicate.Post
- func TitleLT(v string) predicate.Post
- func TitleLTE(v string) predicate.Post
- func TitleNEQ(v string) predicate.Post
- func TitleNotIn(vs ...string) predicate.Post
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the post type in the database. Label = "post" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldDsn holds the string denoting the dsn field in the database. FieldDsn = "dsn" // Table holds the table name of the post in the database. Table = "posts" )
Variables ¶
var ( Hooks [1]ent.Hook Policy ent.Policy )
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/goxiaoy/go-saas/examples/ent/shared/ent/runtime"
var Columns = []string{ FieldID, FieldTenantID, FieldTitle, FieldDescription, FieldDsn, }
Columns holds all SQL columns for post fields.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DsnContains ¶
DsnContains applies the Contains predicate on the "dsn" field.
func DsnContainsFold ¶
DsnContainsFold applies the ContainsFold predicate on the "dsn" field.
func DsnEqualFold ¶
DsnEqualFold applies the EqualFold predicate on the "dsn" field.
func DsnHasPrefix ¶
DsnHasPrefix applies the HasPrefix predicate on the "dsn" field.
func DsnHasSuffix ¶
DsnHasSuffix applies the HasSuffix predicate on the "dsn" field.
func TenantID ¶
func TenantID(v *sql.NullString) predicate.Post
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
func TenantIDContains(v *sql.NullString) predicate.Post
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
func TenantIDContainsFold(v *sql.NullString) predicate.Post
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
func TenantIDEQ(v *sql.NullString) predicate.Post
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
func TenantIDEqualFold(v *sql.NullString) predicate.Post
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v *sql.NullString) predicate.Post
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v *sql.NullString) predicate.Post
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
func TenantIDHasPrefix(v *sql.NullString) predicate.Post
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
func TenantIDHasSuffix(v *sql.NullString) predicate.Post
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...*sql.NullString) predicate.Post
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDIsNil ¶
TenantIDIsNil applies the IsNil predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v *sql.NullString) predicate.Post
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v *sql.NullString) predicate.Post
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v *sql.NullString) predicate.Post
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...*sql.NullString) predicate.Post
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TenantIDNotNil ¶
TenantIDNotNil applies the NotNil predicate on the "tenant_id" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.