Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Pkg) predicate.Pkg
- func ID(id int) predicate.Pkg
- func IDEQ(id int) predicate.Pkg
- func IDGT(id int) predicate.Pkg
- func IDGTE(id int) predicate.Pkg
- func IDIn(ids ...int) predicate.Pkg
- func IDLT(id int) predicate.Pkg
- func IDLTE(id int) predicate.Pkg
- func IDNEQ(id int) predicate.Pkg
- func IDNotIn(ids ...int) predicate.Pkg
- func IsInternal(v bool) predicate.Pkg
- func IsInternalEQ(v bool) predicate.Pkg
- func IsInternalNEQ(v bool) predicate.Pkg
- func Not(p predicate.Pkg) predicate.Pkg
- func Or(predicates ...predicate.Pkg) predicate.Pkg
- func PkgPath(v string) predicate.Pkg
- func PkgPathContains(v string) predicate.Pkg
- func PkgPathContainsFold(v string) predicate.Pkg
- func PkgPathEQ(v string) predicate.Pkg
- func PkgPathEqualFold(v string) predicate.Pkg
- func PkgPathGT(v string) predicate.Pkg
- func PkgPathGTE(v string) predicate.Pkg
- func PkgPathHasPrefix(v string) predicate.Pkg
- func PkgPathHasSuffix(v string) predicate.Pkg
- func PkgPathIn(vs ...string) predicate.Pkg
- func PkgPathLT(v string) predicate.Pkg
- func PkgPathLTE(v string) predicate.Pkg
- func PkgPathNEQ(v string) predicate.Pkg
- func PkgPathNotIn(vs ...string) predicate.Pkg
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the pkg type in the database. Label = "pkg" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPkgPath holds the string denoting the pkg_path field in the database. FieldPkgPath = "pkg_path" // FieldIsInternal holds the string denoting the is_internal field in the database. FieldIsInternal = "is_internal" // Table holds the table name of the pkg in the database. Table = "pkgs" )
Variables ¶
var ( // PkgPathValidator is a validator for the "pkg_path" field. It is called by the builders before save. PkgPathValidator func(string) error // DefaultIsInternal holds the default value on creation for the "is_internal" field. DefaultIsInternal bool )
var Columns = []string{ FieldID, FieldPkgPath, FieldIsInternal, }
Columns holds all SQL columns for pkg fields.
Functions ¶
func IsInternal ¶
IsInternal applies equality check predicate on the "is_internal" field. It's identical to IsInternalEQ.
func IsInternalEQ ¶
IsInternalEQ applies the EQ predicate on the "is_internal" field.
func IsInternalNEQ ¶
IsInternalNEQ applies the NEQ predicate on the "is_internal" field.
func PkgPath ¶
PkgPath applies equality check predicate on the "pkg_path" field. It's identical to PkgPathEQ.
func PkgPathContains ¶
PkgPathContains applies the Contains predicate on the "pkg_path" field.
func PkgPathContainsFold ¶
PkgPathContainsFold applies the ContainsFold predicate on the "pkg_path" field.
func PkgPathEqualFold ¶
PkgPathEqualFold applies the EqualFold predicate on the "pkg_path" field.
func PkgPathGTE ¶
PkgPathGTE applies the GTE predicate on the "pkg_path" field.
func PkgPathHasPrefix ¶
PkgPathHasPrefix applies the HasPrefix predicate on the "pkg_path" field.
func PkgPathHasSuffix ¶
PkgPathHasSuffix applies the HasSuffix predicate on the "pkg_path" field.
func PkgPathLTE ¶
PkgPathLTE applies the LTE predicate on the "pkg_path" field.
func PkgPathNEQ ¶
PkgPathNEQ applies the NEQ predicate on the "pkg_path" field.
func PkgPathNotIn ¶
PkgPathNotIn applies the NotIn predicate on the "pkg_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 Pkg queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsInternal ¶
func ByIsInternal(opts ...sql.OrderTermOption) OrderOption
ByIsInternal orders the results by the is_internal field.
func ByPkgPath ¶
func ByPkgPath(opts ...sql.OrderTermOption) OrderOption
ByPkgPath orders the results by the pkg_path field.