squeak

package
v0.0.0-...-11b8a5d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the squeak type in the database.
	Label = "squeak"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldBlockNumber holds the string denoting the block_number field in the database.
	FieldBlockNumber = "block_number"
	// FieldContent holds the string denoting the content field in the database.
	FieldContent = "content"
	// EdgeInteractions holds the string denoting the interactions edge name in mutations.
	EdgeInteractions = "interactions"
	// EdgePool holds the string denoting the pool edge name in mutations.
	EdgePool = "pool"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the squeak in the database.
	Table = "squeaks"
	// InteractionsTable is the table that holds the interactions relation/edge.
	InteractionsTable = "interactions"
	// InteractionsInverseTable is the table name for the Interaction entity.
	// It exists in this package in order to avoid circular dependency with the "interaction" package.
	InteractionsInverseTable = "interactions"
	// InteractionsColumn is the table column denoting the interactions relation/edge.
	InteractionsColumn = "squeak_interactions"
	// PoolTable is the table that holds the pool relation/edge.
	PoolTable = "pools"
	// PoolInverseTable is the table name for the Pool entity.
	// It exists in this package in order to avoid circular dependency with the "pool" package.
	PoolInverseTable = "pools"
	// PoolColumn is the table column denoting the pool relation/edge.
	PoolColumn = "squeak_pool"
	// CreatorTable is the table that holds the creator relation/edge.
	CreatorTable = "squeaks"
	// CreatorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	CreatorInverseTable = "users"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "user_created"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "squeaks"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_owned"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// ContentValidator is a validator for the "content" field. It is called by the builders before save.
	ContentValidator func(string) error
)

Columns holds all SQL columns for squeak fields.

View Source
var ForeignKeys = []string{
	"user_created",
	"user_owned",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "squeaks" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Squeak) predicate.Squeak

And groups predicates with the AND operator between them.

func BlockNumber

func BlockNumber(v *types.Uint256) predicate.Squeak

BlockNumber applies equality check predicate on the "block_number" field. It's identical to BlockNumberEQ.

func BlockNumberEQ

func BlockNumberEQ(v *types.Uint256) predicate.Squeak

BlockNumberEQ applies the EQ predicate on the "block_number" field.

func BlockNumberGT

func BlockNumberGT(v *types.Uint256) predicate.Squeak

BlockNumberGT applies the GT predicate on the "block_number" field.

func BlockNumberGTE

func BlockNumberGTE(v *types.Uint256) predicate.Squeak

BlockNumberGTE applies the GTE predicate on the "block_number" field.

func BlockNumberIn

func BlockNumberIn(vs ...*types.Uint256) predicate.Squeak

BlockNumberIn applies the In predicate on the "block_number" field.

func BlockNumberLT

func BlockNumberLT(v *types.Uint256) predicate.Squeak

BlockNumberLT applies the LT predicate on the "block_number" field.

func BlockNumberLTE

func BlockNumberLTE(v *types.Uint256) predicate.Squeak

BlockNumberLTE applies the LTE predicate on the "block_number" field.

func BlockNumberNEQ

func BlockNumberNEQ(v *types.Uint256) predicate.Squeak

BlockNumberNEQ applies the NEQ predicate on the "block_number" field.

func BlockNumberNotIn

func BlockNumberNotIn(vs ...*types.Uint256) predicate.Squeak

BlockNumberNotIn applies the NotIn predicate on the "block_number" field.

func Content

func Content(v string) predicate.Squeak

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentContains

func ContentContains(v string) predicate.Squeak

ContentContains applies the Contains predicate on the "content" field.

func ContentContainsFold

func ContentContainsFold(v string) predicate.Squeak

ContentContainsFold applies the ContainsFold predicate on the "content" field.

func ContentEQ

func ContentEQ(v string) predicate.Squeak

ContentEQ applies the EQ predicate on the "content" field.

func ContentEqualFold

func ContentEqualFold(v string) predicate.Squeak

ContentEqualFold applies the EqualFold predicate on the "content" field.

func ContentGT

func ContentGT(v string) predicate.Squeak

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v string) predicate.Squeak

ContentGTE applies the GTE predicate on the "content" field.

func ContentHasPrefix

func ContentHasPrefix(v string) predicate.Squeak

ContentHasPrefix applies the HasPrefix predicate on the "content" field.

func ContentHasSuffix

func ContentHasSuffix(v string) predicate.Squeak

ContentHasSuffix applies the HasSuffix predicate on the "content" field.

func ContentIn

func ContentIn(vs ...string) predicate.Squeak

ContentIn applies the In predicate on the "content" field.

func ContentLT

func ContentLT(v string) predicate.Squeak

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v string) predicate.Squeak

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v string) predicate.Squeak

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...string) predicate.Squeak

ContentNotIn applies the NotIn predicate on the "content" field.

func CreateTime

func CreateTime(v time.Time) predicate.Squeak

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Squeak

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Squeak

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Squeak

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Squeak

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Squeak

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Squeak

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Squeak

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Squeak

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasCreator

func HasCreator() predicate.Squeak

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.User) predicate.Squeak

HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).

func HasInteractions

func HasInteractions() predicate.Squeak

HasInteractions applies the HasEdge predicate on the "interactions" edge.

func HasInteractionsWith

func HasInteractionsWith(preds ...predicate.Interaction) predicate.Squeak

HasInteractionsWith applies the HasEdge predicate on the "interactions" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.Squeak

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Squeak

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasPool

func HasPool() predicate.Squeak

HasPool applies the HasEdge predicate on the "pool" edge.

func HasPoolWith

func HasPoolWith(preds ...predicate.Pool) predicate.Squeak

HasPoolWith applies the HasEdge predicate on the "pool" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Squeak

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Squeak

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Squeak

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Squeak

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Squeak

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Squeak

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Squeak

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

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