Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TestC) predicate.TestC
- func BID(v int) predicate.TestC
- func BIDEQ(v int) predicate.TestC
- func BIDIn(vs ...int) predicate.TestC
- func BIDIsNil() predicate.TestC
- func BIDNEQ(v int) predicate.TestC
- func BIDNotIn(vs ...int) predicate.TestC
- func BIDNotNil() predicate.TestC
- func Bool(v bool) predicate.TestC
- func BoolEQ(v bool) predicate.TestC
- func BoolNEQ(v bool) predicate.TestC
- func Float4(v float32) predicate.TestC
- func Float4EQ(v float32) predicate.TestC
- func Float4GT(v float32) predicate.TestC
- func Float4GTE(v float32) predicate.TestC
- func Float4In(vs ...float32) predicate.TestC
- func Float4LT(v float32) predicate.TestC
- func Float4LTE(v float32) predicate.TestC
- func Float4NEQ(v float32) predicate.TestC
- func Float4NotIn(vs ...float32) predicate.TestC
- func Float8(v float64) predicate.TestC
- func Float8EQ(v float64) predicate.TestC
- func Float8GT(v float64) predicate.TestC
- func Float8GTE(v float64) predicate.TestC
- func Float8In(vs ...float64) predicate.TestC
- func Float8LT(v float64) predicate.TestC
- func Float8LTE(v float64) predicate.TestC
- func Float8NEQ(v float64) predicate.TestC
- func Float8NotIn(vs ...float64) predicate.TestC
- func HasTestB() predicate.TestC
- func HasTestBWith(preds ...predicate.TestB) predicate.TestC
- func ID(id int) predicate.TestC
- func IDEQ(id int) predicate.TestC
- func IDGT(id int) predicate.TestC
- func IDGTE(id int) predicate.TestC
- func IDIn(ids ...int) predicate.TestC
- func IDLT(id int) predicate.TestC
- func IDLTE(id int) predicate.TestC
- func IDNEQ(id int) predicate.TestC
- func IDNotIn(ids ...int) predicate.TestC
- func Int4(v int32) predicate.TestC
- func Int4EQ(v int32) predicate.TestC
- func Int4GT(v int32) predicate.TestC
- func Int4GTE(v int32) predicate.TestC
- func Int4In(vs ...int32) predicate.TestC
- func Int4LT(v int32) predicate.TestC
- func Int4LTE(v int32) predicate.TestC
- func Int4NEQ(v int32) predicate.TestC
- func Int4NotIn(vs ...int32) predicate.TestC
- func Int8(v int) predicate.TestC
- func Int8EQ(v int) predicate.TestC
- func Int8GT(v int) predicate.TestC
- func Int8GTE(v int) predicate.TestC
- func Int8In(vs ...int) predicate.TestC
- func Int8LT(v int) predicate.TestC
- func Int8LTE(v int) predicate.TestC
- func Int8NEQ(v int) predicate.TestC
- func Int8NotIn(vs ...int) predicate.TestC
- func Name(v string) predicate.TestC
- func NameContains(v string) predicate.TestC
- func NameContainsFold(v string) predicate.TestC
- func NameEQ(v string) predicate.TestC
- func NameEqualFold(v string) predicate.TestC
- func NameGT(v string) predicate.TestC
- func NameGTE(v string) predicate.TestC
- func NameHasPrefix(v string) predicate.TestC
- func NameHasSuffix(v string) predicate.TestC
- func NameIn(vs ...string) predicate.TestC
- func NameLT(v string) predicate.TestC
- func NameLTE(v string) predicate.TestC
- func NameNEQ(v string) predicate.TestC
- func NameNotIn(vs ...string) predicate.TestC
- func Not(p predicate.TestC) predicate.TestC
- func Or(predicates ...predicate.TestC) predicate.TestC
- func Text(v string) predicate.TestC
- func TextContains(v string) predicate.TestC
- func TextContainsFold(v string) predicate.TestC
- func TextEQ(v string) predicate.TestC
- func TextEqualFold(v string) predicate.TestC
- func TextGT(v string) predicate.TestC
- func TextGTE(v string) predicate.TestC
- func TextHasPrefix(v string) predicate.TestC
- func TextHasSuffix(v string) predicate.TestC
- func TextIn(vs ...string) predicate.TestC
- func TextLT(v string) predicate.TestC
- func TextLTE(v string) predicate.TestC
- func TextNEQ(v string) predicate.TestC
- func TextNotIn(vs ...string) predicate.TestC
- func Time(v time.Time) predicate.TestC
- func TimeEQ(v time.Time) predicate.TestC
- func TimeGT(v time.Time) predicate.TestC
- func TimeGTE(v time.Time) predicate.TestC
- func TimeIn(vs ...time.Time) predicate.TestC
- func TimeLT(v time.Time) predicate.TestC
- func TimeLTE(v time.Time) predicate.TestC
- func TimeNEQ(v time.Time) predicate.TestC
- func TimeNotIn(vs ...time.Time) predicate.TestC
- func ValidColumn(column string) bool
- type OrderOption
- func ByBID(opts ...sql.OrderTermOption) OrderOption
- func ByBool(opts ...sql.OrderTermOption) OrderOption
- func ByFloat4(opts ...sql.OrderTermOption) OrderOption
- func ByFloat8(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInt4(opts ...sql.OrderTermOption) OrderOption
- func ByInt8(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTestBField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByText(opts ...sql.OrderTermOption) OrderOption
- func ByTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the testc type in the database. Label = "testc" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldBID holds the string denoting the b_id field in the database. FieldBID = "b_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldInt4 holds the string denoting the int4 field in the database. FieldInt4 = "int4" // FieldInt8 holds the string denoting the int8 field in the database. FieldInt8 = "int8" // FieldFloat4 holds the string denoting the float4 field in the database. FieldFloat4 = "float4" // FieldFloat8 holds the string denoting the float8 field in the database. FieldFloat8 = "float8" // FieldBool holds the string denoting the bool field in the database. FieldBool = "bool" // FieldText holds the string denoting the text field in the database. FieldText = "text" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // EdgeTestB holds the string denoting the test_b edge name in mutations. EdgeTestB = "test_b" // Table holds the table name of the testc in the database. Table = "test_c" // TestBTable is the table that holds the test_b relation/edge. TestBTable = "test_c" // TestBInverseTable is the table name for the TestB entity. // It exists in this package in order to avoid circular dependency with the "testb" package. TestBInverseTable = "test_b" // TestBColumn is the table column denoting the test_b relation/edge. TestBColumn = "b_id" )
Variables ¶
var Columns = []string{ FieldID, FieldBID, FieldName, FieldInt4, FieldInt8, FieldFloat4, FieldFloat8, FieldBool, FieldText, FieldTime, }
Columns holds all SQL columns for testc fields.
Functions ¶
func Float4 ¶
Float4 applies equality check predicate on the "float4" field. It's identical to Float4EQ.
func Float4NotIn ¶
Float4NotIn applies the NotIn predicate on the "float4" field.
func Float8 ¶
Float8 applies equality check predicate on the "float8" field. It's identical to Float8EQ.
func Float8NotIn ¶
Float8NotIn applies the NotIn predicate on the "float8" field.
func HasTestBWith ¶
HasTestBWith applies the HasEdge predicate on the "test_b" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func TextContains ¶
TextContains applies the Contains predicate on the "text" field.
func TextContainsFold ¶
TextContainsFold applies the ContainsFold predicate on the "text" field.
func TextEqualFold ¶
TextEqualFold applies the EqualFold predicate on the "text" field.
func TextHasPrefix ¶
TextHasPrefix applies the HasPrefix predicate on the "text" field.
func TextHasSuffix ¶
TextHasSuffix applies the HasSuffix predicate on the "text" 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 TestC queries.
func ByBID ¶
func ByBID(opts ...sql.OrderTermOption) OrderOption
ByBID orders the results by the b_id field.
func ByBool ¶
func ByBool(opts ...sql.OrderTermOption) OrderOption
ByBool orders the results by the bool field.
func ByFloat4 ¶
func ByFloat4(opts ...sql.OrderTermOption) OrderOption
ByFloat4 orders the results by the float4 field.
func ByFloat8 ¶
func ByFloat8(opts ...sql.OrderTermOption) OrderOption
ByFloat8 orders the results by the float8 field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInt4 ¶
func ByInt4(opts ...sql.OrderTermOption) OrderOption
ByInt4 orders the results by the int4 field.
func ByInt8 ¶
func ByInt8(opts ...sql.OrderTermOption) OrderOption
ByInt8 orders the results by the int8 field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByTestBField ¶
func ByTestBField(field string, opts ...sql.OrderTermOption) OrderOption
ByTestBField orders the results by test_b field.
func ByText ¶
func ByText(opts ...sql.OrderTermOption) OrderOption
ByText orders the results by the text field.
func ByTime ¶
func ByTime(opts ...sql.OrderTermOption) OrderOption
ByTime orders the results by the time field.