post

package
v0.0.0-...-80d8d39 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for post fields.

Functions

func And

func And(predicates ...predicate.Post) predicate.Post

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Post

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Post

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Post

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Post

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Post

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Post

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Post

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Post

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Post

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Post

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Post

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Post

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Post

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Post

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Post

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Post

DescriptionNotNil applies the NotNil predicate on the "description" field.

func Dsn

func Dsn(v string) predicate.Post

Dsn applies equality check predicate on the "dsn" field. It's identical to DsnEQ.

func DsnContains

func DsnContains(v string) predicate.Post

DsnContains applies the Contains predicate on the "dsn" field.

func DsnContainsFold

func DsnContainsFold(v string) predicate.Post

DsnContainsFold applies the ContainsFold predicate on the "dsn" field.

func DsnEQ

func DsnEQ(v string) predicate.Post

DsnEQ applies the EQ predicate on the "dsn" field.

func DsnEqualFold

func DsnEqualFold(v string) predicate.Post

DsnEqualFold applies the EqualFold predicate on the "dsn" field.

func DsnGT

func DsnGT(v string) predicate.Post

DsnGT applies the GT predicate on the "dsn" field.

func DsnGTE

func DsnGTE(v string) predicate.Post

DsnGTE applies the GTE predicate on the "dsn" field.

func DsnHasPrefix

func DsnHasPrefix(v string) predicate.Post

DsnHasPrefix applies the HasPrefix predicate on the "dsn" field.

func DsnHasSuffix

func DsnHasSuffix(v string) predicate.Post

DsnHasSuffix applies the HasSuffix predicate on the "dsn" field.

func DsnIn

func DsnIn(vs ...string) predicate.Post

DsnIn applies the In predicate on the "dsn" field.

func DsnIsNil

func DsnIsNil() predicate.Post

DsnIsNil applies the IsNil predicate on the "dsn" field.

func DsnLT

func DsnLT(v string) predicate.Post

DsnLT applies the LT predicate on the "dsn" field.

func DsnLTE

func DsnLTE(v string) predicate.Post

DsnLTE applies the LTE predicate on the "dsn" field.

func DsnNEQ

func DsnNEQ(v string) predicate.Post

DsnNEQ applies the NEQ predicate on the "dsn" field.

func DsnNotIn

func DsnNotIn(vs ...string) predicate.Post

DsnNotIn applies the NotIn predicate on the "dsn" field.

func DsnNotNil

func DsnNotNil() predicate.Post

DsnNotNil applies the NotNil predicate on the "dsn" field.

func ID

func ID(id int) predicate.Post

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Post

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Post

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Post

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Post

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Post

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Post

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.Post) predicate.Post

Or groups predicates with the OR operator between them.

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

func TenantIDIsNil() predicate.Post

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

func TenantIDNotNil() predicate.Post

TenantIDNotNil applies the NotNil predicate on the "tenant_id" field.

func Title

func Title(v string) predicate.Post

Title applies equality check predicate on the "title" field. It's identical to TitleEQ.

func TitleContains

func TitleContains(v string) predicate.Post

TitleContains applies the Contains predicate on the "title" field.

func TitleContainsFold

func TitleContainsFold(v string) predicate.Post

TitleContainsFold applies the ContainsFold predicate on the "title" field.

func TitleEQ

func TitleEQ(v string) predicate.Post

TitleEQ applies the EQ predicate on the "title" field.

func TitleEqualFold

func TitleEqualFold(v string) predicate.Post

TitleEqualFold applies the EqualFold predicate on the "title" field.

func TitleGT

func TitleGT(v string) predicate.Post

TitleGT applies the GT predicate on the "title" field.

func TitleGTE

func TitleGTE(v string) predicate.Post

TitleGTE applies the GTE predicate on the "title" field.

func TitleHasPrefix

func TitleHasPrefix(v string) predicate.Post

TitleHasPrefix applies the HasPrefix predicate on the "title" field.

func TitleHasSuffix

func TitleHasSuffix(v string) predicate.Post

TitleHasSuffix applies the HasSuffix predicate on the "title" field.

func TitleIn

func TitleIn(vs ...string) predicate.Post

TitleIn applies the In predicate on the "title" field.

func TitleLT

func TitleLT(v string) predicate.Post

TitleLT applies the LT predicate on the "title" field.

func TitleLTE

func TitleLTE(v string) predicate.Post

TitleLTE applies the LTE predicate on the "title" field.

func TitleNEQ

func TitleNEQ(v string) predicate.Post

TitleNEQ applies the NEQ predicate on the "title" field.

func TitleNotIn

func TitleNotIn(vs ...string) predicate.Post

TitleNotIn applies the NotIn predicate on the "title" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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