Documentation
¶
Index ¶
- Constants
- Variables
- func AnchorID(v int) predicate.Message
- func AnchorIDEQ(v int) predicate.Message
- func AnchorIDGT(v int) predicate.Message
- func AnchorIDGTE(v int) predicate.Message
- func AnchorIDIn(vs ...int) predicate.Message
- func AnchorIDLT(v int) predicate.Message
- func AnchorIDLTE(v int) predicate.Message
- func AnchorIDNEQ(v int) predicate.Message
- func AnchorIDNotIn(vs ...int) predicate.Message
- func And(predicates ...predicate.Message) predicate.Message
- func ID(id uuid.UUID) predicate.Message
- func IDEQ(id uuid.UUID) predicate.Message
- func IDGT(id uuid.UUID) predicate.Message
- func IDGTE(id uuid.UUID) predicate.Message
- func IDIn(ids ...uuid.UUID) predicate.Message
- func IDLT(id uuid.UUID) predicate.Message
- func IDLTE(id uuid.UUID) predicate.Message
- func IDNEQ(id uuid.UUID) predicate.Message
- func IDNotIn(ids ...uuid.UUID) predicate.Message
- func Message(v string) predicate.Message
- func MessageContains(v string) predicate.Message
- func MessageContainsFold(v string) predicate.Message
- func MessageEQ(v string) predicate.Message
- func MessageEqualFold(v string) predicate.Message
- func MessageGT(v string) predicate.Message
- func MessageGTE(v string) predicate.Message
- func MessageHasPrefix(v string) predicate.Message
- func MessageHasSuffix(v string) predicate.Message
- func MessageIn(vs ...string) predicate.Message
- func MessageLT(v string) predicate.Message
- func MessageLTE(v string) predicate.Message
- func MessageNEQ(v string) predicate.Message
- func MessageNotIn(vs ...string) predicate.Message
- func Not(p predicate.Message) predicate.Message
- func Or(predicates ...predicate.Message) predicate.Message
- func ProofIsNil() predicate.Message
- func ProofNotNil() predicate.Message
- func Root(v string) predicate.Message
- func RootContains(v string) predicate.Message
- func RootContainsFold(v string) predicate.Message
- func RootEQ(v string) predicate.Message
- func RootEqualFold(v string) predicate.Message
- func RootGT(v string) predicate.Message
- func RootGTE(v string) predicate.Message
- func RootHasPrefix(v string) predicate.Message
- func RootHasSuffix(v string) predicate.Message
- func RootIn(vs ...string) predicate.Message
- func RootLT(v string) predicate.Message
- func RootLTE(v string) predicate.Message
- func RootNEQ(v string) predicate.Message
- func RootNotIn(vs ...string) predicate.Message
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the message type in the database. Label = "message" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldMessage holds the string denoting the message field in the database. FieldMessage = "message" // FieldRoot holds the string denoting the root field in the database. FieldRoot = "root" // FieldAnchorID holds the string denoting the anchor_id field in the database. FieldAnchorID = "anchor_id" // FieldProof holds the string denoting the proof field in the database. FieldProof = "proof" // Table holds the table name of the message in the database. Table = "messages" )
Variables ¶
var ( // MessageValidator is a validator for the "message" field. It is called by the builders before save. MessageValidator func(string) error // DefaultRoot holds the default value on creation for the "root" field. DefaultRoot string // DefaultAnchorID holds the default value on creation for the "anchor_id" field. DefaultAnchorID int // AnchorIDValidator is a validator for the "anchor_id" field. It is called by the builders before save. AnchorIDValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldMessage, FieldRoot, FieldAnchorID, FieldProof, }
Columns holds all SQL columns for message fields.
Functions ¶
func AnchorID ¶
AnchorID applies equality check predicate on the "anchor_id" field. It's identical to AnchorIDEQ.
func AnchorIDEQ ¶
AnchorIDEQ applies the EQ predicate on the "anchor_id" field.
func AnchorIDGT ¶
AnchorIDGT applies the GT predicate on the "anchor_id" field.
func AnchorIDGTE ¶
AnchorIDGTE applies the GTE predicate on the "anchor_id" field.
func AnchorIDIn ¶
AnchorIDIn applies the In predicate on the "anchor_id" field.
func AnchorIDLT ¶
AnchorIDLT applies the LT predicate on the "anchor_id" field.
func AnchorIDLTE ¶
AnchorIDLTE applies the LTE predicate on the "anchor_id" field.
func AnchorIDNEQ ¶
AnchorIDNEQ applies the NEQ predicate on the "anchor_id" field.
func AnchorIDNotIn ¶
AnchorIDNotIn applies the NotIn predicate on the "anchor_id" field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func ProofIsNil ¶
ProofIsNil applies the IsNil predicate on the "proof" field.
func ProofNotNil ¶
ProofNotNil applies the NotNil predicate on the "proof" field.
func RootContains ¶
RootContains applies the Contains predicate on the "root" field.
func RootContainsFold ¶
RootContainsFold applies the ContainsFold predicate on the "root" field.
func RootEqualFold ¶
RootEqualFold applies the EqualFold predicate on the "root" field.
func RootHasPrefix ¶
RootHasPrefix applies the HasPrefix predicate on the "root" field.
func RootHasSuffix ¶
RootHasSuffix applies the HasSuffix predicate on the "root" 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 Message queries.
func ByAnchorID ¶
func ByAnchorID(opts ...sql.OrderTermOption) OrderOption
ByAnchorID orders the results by the anchor_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMessage ¶
func ByMessage(opts ...sql.OrderTermOption) OrderOption
ByMessage orders the results by the message field.
func ByRoot ¶
func ByRoot(opts ...sql.OrderTermOption) OrderOption
ByRoot orders the results by the root field.