Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Share) predicate.Share
- func Description(v string) predicate.Share
- func DescriptionContains(v string) predicate.Share
- func DescriptionContainsFold(v string) predicate.Share
- func DescriptionEQ(v string) predicate.Share
- func DescriptionEqualFold(v string) predicate.Share
- func DescriptionGT(v string) predicate.Share
- func DescriptionGTE(v string) predicate.Share
- func DescriptionHasPrefix(v string) predicate.Share
- func DescriptionHasSuffix(v string) predicate.Share
- func DescriptionIn(vs ...string) predicate.Share
- func DescriptionLT(v string) predicate.Share
- func DescriptionLTE(v string) predicate.Share
- func DescriptionNEQ(v string) predicate.Share
- func DescriptionNotIn(vs ...string) predicate.Share
- func HasOwner() predicate.Share
- func HasOwnerWith(preds ...predicate.Agent) predicate.Share
- func ID(id int) predicate.Share
- func IDEQ(id int) predicate.Share
- func IDGT(id int) predicate.Share
- func IDGTE(id int) predicate.Share
- func IDIn(ids ...int) predicate.Share
- func IDLT(id int) predicate.Share
- func IDLTE(id int) predicate.Share
- func IDNEQ(id int) predicate.Share
- func IDNotIn(ids ...int) predicate.Share
- func Name(v string) predicate.Share
- func NameContains(v string) predicate.Share
- func NameContainsFold(v string) predicate.Share
- func NameEQ(v string) predicate.Share
- func NameEqualFold(v string) predicate.Share
- func NameGT(v string) predicate.Share
- func NameGTE(v string) predicate.Share
- func NameHasPrefix(v string) predicate.Share
- func NameHasSuffix(v string) predicate.Share
- func NameIn(vs ...string) predicate.Share
- func NameLT(v string) predicate.Share
- func NameLTE(v string) predicate.Share
- func NameNEQ(v string) predicate.Share
- func NameNotIn(vs ...string) predicate.Share
- func Not(p predicate.Share) predicate.Share
- func Or(predicates ...predicate.Share) predicate.Share
- func Path(v string) predicate.Share
- func PathContains(v string) predicate.Share
- func PathContainsFold(v string) predicate.Share
- func PathEQ(v string) predicate.Share
- func PathEqualFold(v string) predicate.Share
- func PathGT(v string) predicate.Share
- func PathGTE(v string) predicate.Share
- func PathHasPrefix(v string) predicate.Share
- func PathHasSuffix(v string) predicate.Share
- func PathIn(vs ...string) predicate.Share
- func PathIsNil() predicate.Share
- func PathLT(v string) predicate.Share
- func PathLTE(v string) predicate.Share
- func PathNEQ(v string) predicate.Share
- func PathNotIn(vs ...string) predicate.Share
- func PathNotNil() predicate.Share
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the share type in the database. Label = "share" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the share in the database. Table = "shares" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "shares" // OwnerInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. OwnerInverseTable = "agents" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "agent_shares" )
Variables ¶
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldPath, }
Columns holds all SQL columns for share fields.
var ForeignKeys = []string{
"agent_shares",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "shares" table and are not defined as standalone fields in the schema.
Functions ¶
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" 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 PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathNotNil ¶
PathNotNil applies the NotNil predicate on the "path" 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 Share queries.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.