Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Squeak) predicate.Squeak
- func BlockNumber(v *types.Uint256) predicate.Squeak
- func BlockNumberEQ(v *types.Uint256) predicate.Squeak
- func BlockNumberGT(v *types.Uint256) predicate.Squeak
- func BlockNumberGTE(v *types.Uint256) predicate.Squeak
- func BlockNumberIn(vs ...*types.Uint256) predicate.Squeak
- func BlockNumberLT(v *types.Uint256) predicate.Squeak
- func BlockNumberLTE(v *types.Uint256) predicate.Squeak
- func BlockNumberNEQ(v *types.Uint256) predicate.Squeak
- func BlockNumberNotIn(vs ...*types.Uint256) predicate.Squeak
- func Content(v string) predicate.Squeak
- func ContentContains(v string) predicate.Squeak
- func ContentContainsFold(v string) predicate.Squeak
- func ContentEQ(v string) predicate.Squeak
- func ContentEqualFold(v string) predicate.Squeak
- func ContentGT(v string) predicate.Squeak
- func ContentGTE(v string) predicate.Squeak
- func ContentHasPrefix(v string) predicate.Squeak
- func ContentHasSuffix(v string) predicate.Squeak
- func ContentIn(vs ...string) predicate.Squeak
- func ContentLT(v string) predicate.Squeak
- func ContentLTE(v string) predicate.Squeak
- func ContentNEQ(v string) predicate.Squeak
- func ContentNotIn(vs ...string) predicate.Squeak
- func CreateTime(v time.Time) predicate.Squeak
- func CreateTimeEQ(v time.Time) predicate.Squeak
- func CreateTimeGT(v time.Time) predicate.Squeak
- func CreateTimeGTE(v time.Time) predicate.Squeak
- func CreateTimeIn(vs ...time.Time) predicate.Squeak
- func CreateTimeLT(v time.Time) predicate.Squeak
- func CreateTimeLTE(v time.Time) predicate.Squeak
- func CreateTimeNEQ(v time.Time) predicate.Squeak
- func CreateTimeNotIn(vs ...time.Time) predicate.Squeak
- func HasCreator() predicate.Squeak
- func HasCreatorWith(preds ...predicate.User) predicate.Squeak
- func HasInteractions() predicate.Squeak
- func HasInteractionsWith(preds ...predicate.Interaction) predicate.Squeak
- func HasOwner() predicate.Squeak
- func HasOwnerWith(preds ...predicate.User) predicate.Squeak
- func HasPool() predicate.Squeak
- func HasPoolWith(preds ...predicate.Pool) predicate.Squeak
- func ID(id int) predicate.Squeak
- func IDEQ(id int) predicate.Squeak
- func IDGT(id int) predicate.Squeak
- func IDGTE(id int) predicate.Squeak
- func IDIn(ids ...int) predicate.Squeak
- func IDLT(id int) predicate.Squeak
- func IDLTE(id int) predicate.Squeak
- func IDNEQ(id int) predicate.Squeak
- func IDNotIn(ids ...int) predicate.Squeak
- func Not(p predicate.Squeak) predicate.Squeak
- func Or(predicates ...predicate.Squeak) predicate.Squeak
- func ValidColumn(column string) bool
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreateTime, FieldBlockNumber, FieldContent, }
Columns holds all SQL columns for squeak fields.
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 BlockNumber ¶
BlockNumber applies equality check predicate on the "block_number" field. It's identical to BlockNumberEQ.
func BlockNumberEQ ¶
BlockNumberEQ applies the EQ predicate on the "block_number" field.
func BlockNumberGT ¶
BlockNumberGT applies the GT predicate on the "block_number" field.
func BlockNumberGTE ¶
BlockNumberGTE applies the GTE predicate on the "block_number" field.
func BlockNumberIn ¶
BlockNumberIn applies the In predicate on the "block_number" field.
func BlockNumberLT ¶
BlockNumberLT applies the LT predicate on the "block_number" field.
func BlockNumberLTE ¶
BlockNumberLTE applies the LTE predicate on the "block_number" field.
func BlockNumberNEQ ¶
BlockNumberNEQ applies the NEQ predicate on the "block_number" field.
func BlockNumberNotIn ¶
BlockNumberNotIn applies the NotIn predicate on the "block_number" field.
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasInteractions ¶
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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPoolWith ¶
HasPoolWith applies the HasEdge predicate on the "pool" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.