Documentation ¶
Index ¶
- Constants
- Variables
- func APIGroup(v string) predicate.API
- func APIGroupContains(v string) predicate.API
- func APIGroupContainsFold(v string) predicate.API
- func APIGroupEQ(v string) predicate.API
- func APIGroupEqualFold(v string) predicate.API
- func APIGroupGT(v string) predicate.API
- func APIGroupGTE(v string) predicate.API
- func APIGroupHasPrefix(v string) predicate.API
- func APIGroupHasSuffix(v string) predicate.API
- func APIGroupIn(vs ...string) predicate.API
- func APIGroupLT(v string) predicate.API
- func APIGroupLTE(v string) predicate.API
- func APIGroupNEQ(v string) predicate.API
- func APIGroupNotIn(vs ...string) predicate.API
- func And(predicates ...predicate.API) predicate.API
- func CreatedAt(v time.Time) predicate.API
- func CreatedAtEQ(v time.Time) predicate.API
- func CreatedAtGT(v time.Time) predicate.API
- func CreatedAtGTE(v time.Time) predicate.API
- func CreatedAtIn(vs ...time.Time) predicate.API
- func CreatedAtLT(v time.Time) predicate.API
- func CreatedAtLTE(v time.Time) predicate.API
- func CreatedAtNEQ(v time.Time) predicate.API
- func CreatedAtNotIn(vs ...time.Time) predicate.API
- func Description(v string) predicate.API
- func DescriptionContains(v string) predicate.API
- func DescriptionContainsFold(v string) predicate.API
- func DescriptionEQ(v string) predicate.API
- func DescriptionEqualFold(v string) predicate.API
- func DescriptionGT(v string) predicate.API
- func DescriptionGTE(v string) predicate.API
- func DescriptionHasPrefix(v string) predicate.API
- func DescriptionHasSuffix(v string) predicate.API
- func DescriptionIn(vs ...string) predicate.API
- func DescriptionLT(v string) predicate.API
- func DescriptionLTE(v string) predicate.API
- func DescriptionNEQ(v string) predicate.API
- func DescriptionNotIn(vs ...string) predicate.API
- func ID(id uint64) predicate.API
- func IDEQ(id uint64) predicate.API
- func IDGT(id uint64) predicate.API
- func IDGTE(id uint64) predicate.API
- func IDIn(ids ...uint64) predicate.API
- func IDLT(id uint64) predicate.API
- func IDLTE(id uint64) predicate.API
- func IDNEQ(id uint64) predicate.API
- func IDNotIn(ids ...uint64) predicate.API
- func IsRequired(v bool) predicate.API
- func IsRequiredEQ(v bool) predicate.API
- func IsRequiredNEQ(v bool) predicate.API
- func Method(v string) predicate.API
- func MethodContains(v string) predicate.API
- func MethodContainsFold(v string) predicate.API
- func MethodEQ(v string) predicate.API
- func MethodEqualFold(v string) predicate.API
- func MethodGT(v string) predicate.API
- func MethodGTE(v string) predicate.API
- func MethodHasPrefix(v string) predicate.API
- func MethodHasSuffix(v string) predicate.API
- func MethodIn(vs ...string) predicate.API
- func MethodLT(v string) predicate.API
- func MethodLTE(v string) predicate.API
- func MethodNEQ(v string) predicate.API
- func MethodNotIn(vs ...string) predicate.API
- func Not(p predicate.API) predicate.API
- func Or(predicates ...predicate.API) predicate.API
- func Path(v string) predicate.API
- func PathContains(v string) predicate.API
- func PathContainsFold(v string) predicate.API
- func PathEQ(v string) predicate.API
- func PathEqualFold(v string) predicate.API
- func PathGT(v string) predicate.API
- func PathGTE(v string) predicate.API
- func PathHasPrefix(v string) predicate.API
- func PathHasSuffix(v string) predicate.API
- func PathIn(vs ...string) predicate.API
- func PathLT(v string) predicate.API
- func PathLTE(v string) predicate.API
- func PathNEQ(v string) predicate.API
- func PathNotIn(vs ...string) predicate.API
- func ServiceName(v string) predicate.API
- func ServiceNameContains(v string) predicate.API
- func ServiceNameContainsFold(v string) predicate.API
- func ServiceNameEQ(v string) predicate.API
- func ServiceNameEqualFold(v string) predicate.API
- func ServiceNameGT(v string) predicate.API
- func ServiceNameGTE(v string) predicate.API
- func ServiceNameHasPrefix(v string) predicate.API
- func ServiceNameHasSuffix(v string) predicate.API
- func ServiceNameIn(vs ...string) predicate.API
- func ServiceNameLT(v string) predicate.API
- func ServiceNameLTE(v string) predicate.API
- func ServiceNameNEQ(v string) predicate.API
- func ServiceNameNotIn(vs ...string) predicate.API
- func UpdatedAt(v time.Time) predicate.API
- func UpdatedAtEQ(v time.Time) predicate.API
- func UpdatedAtGT(v time.Time) predicate.API
- func UpdatedAtGTE(v time.Time) predicate.API
- func UpdatedAtIn(vs ...time.Time) predicate.API
- func UpdatedAtLT(v time.Time) predicate.API
- func UpdatedAtLTE(v time.Time) predicate.API
- func UpdatedAtNEQ(v time.Time) predicate.API
- func UpdatedAtNotIn(vs ...time.Time) predicate.API
- func ValidColumn(column string) bool
- type OrderOption
- func ByAPIGroup(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsRequired(opts ...sql.OrderTermOption) OrderOption
- func ByMethod(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByServiceName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the api type in the database. Label = "api" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldAPIGroup holds the string denoting the api_group field in the database. FieldAPIGroup = "api_group" // FieldServiceName holds the string denoting the service_name field in the database. FieldServiceName = "service_name" // FieldMethod holds the string denoting the method field in the database. FieldMethod = "method" // FieldIsRequired holds the string denoting the is_required field in the database. FieldIsRequired = "is_required" // Table holds the table name of the api in the database. Table = "sys_apis" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultServiceName holds the default value on creation for the "service_name" field. DefaultServiceName string // DefaultMethod holds the default value on creation for the "method" field. DefaultMethod string // DefaultIsRequired holds the default value on creation for the "is_required" field. DefaultIsRequired bool )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPath, FieldDescription, FieldAPIGroup, FieldServiceName, FieldMethod, FieldIsRequired, }
Columns holds all SQL columns for api fields.
Functions ¶
func APIGroup ¶
APIGroup applies equality check predicate on the "api_group" field. It's identical to APIGroupEQ.
func APIGroupContains ¶
APIGroupContains applies the Contains predicate on the "api_group" field.
func APIGroupContainsFold ¶
APIGroupContainsFold applies the ContainsFold predicate on the "api_group" field.
func APIGroupEQ ¶
APIGroupEQ applies the EQ predicate on the "api_group" field.
func APIGroupEqualFold ¶
APIGroupEqualFold applies the EqualFold predicate on the "api_group" field.
func APIGroupGT ¶
APIGroupGT applies the GT predicate on the "api_group" field.
func APIGroupGTE ¶
APIGroupGTE applies the GTE predicate on the "api_group" field.
func APIGroupHasPrefix ¶
APIGroupHasPrefix applies the HasPrefix predicate on the "api_group" field.
func APIGroupHasSuffix ¶
APIGroupHasSuffix applies the HasSuffix predicate on the "api_group" field.
func APIGroupIn ¶
APIGroupIn applies the In predicate on the "api_group" field.
func APIGroupLT ¶
APIGroupLT applies the LT predicate on the "api_group" field.
func APIGroupLTE ¶
APIGroupLTE applies the LTE predicate on the "api_group" field.
func APIGroupNEQ ¶
APIGroupNEQ applies the NEQ predicate on the "api_group" field.
func APIGroupNotIn ¶
APIGroupNotIn applies the NotIn predicate on the "api_group" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
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 IsRequired ¶ added in v1.0.14
IsRequired applies equality check predicate on the "is_required" field. It's identical to IsRequiredEQ.
func IsRequiredEQ ¶ added in v1.0.14
IsRequiredEQ applies the EQ predicate on the "is_required" field.
func IsRequiredNEQ ¶ added in v1.0.14
IsRequiredNEQ applies the NEQ predicate on the "is_required" field.
func Method ¶
Method applies equality check predicate on the "method" field. It's identical to MethodEQ.
func MethodContains ¶
MethodContains applies the Contains predicate on the "method" field.
func MethodContainsFold ¶
MethodContainsFold applies the ContainsFold predicate on the "method" field.
func MethodEqualFold ¶
MethodEqualFold applies the EqualFold predicate on the "method" field.
func MethodHasPrefix ¶
MethodHasPrefix applies the HasPrefix predicate on the "method" field.
func MethodHasSuffix ¶
MethodHasSuffix applies the HasSuffix predicate on the "method" field.
func MethodNotIn ¶
MethodNotIn applies the NotIn predicate on the "method" 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 ServiceName ¶ added in v1.2.8
ServiceName applies equality check predicate on the "service_name" field. It's identical to ServiceNameEQ.
func ServiceNameContains ¶ added in v1.2.8
ServiceNameContains applies the Contains predicate on the "service_name" field.
func ServiceNameContainsFold ¶ added in v1.2.8
ServiceNameContainsFold applies the ContainsFold predicate on the "service_name" field.
func ServiceNameEQ ¶ added in v1.2.8
ServiceNameEQ applies the EQ predicate on the "service_name" field.
func ServiceNameEqualFold ¶ added in v1.2.8
ServiceNameEqualFold applies the EqualFold predicate on the "service_name" field.
func ServiceNameGT ¶ added in v1.2.8
ServiceNameGT applies the GT predicate on the "service_name" field.
func ServiceNameGTE ¶ added in v1.2.8
ServiceNameGTE applies the GTE predicate on the "service_name" field.
func ServiceNameHasPrefix ¶ added in v1.2.8
ServiceNameHasPrefix applies the HasPrefix predicate on the "service_name" field.
func ServiceNameHasSuffix ¶ added in v1.2.8
ServiceNameHasSuffix applies the HasSuffix predicate on the "service_name" field.
func ServiceNameIn ¶ added in v1.2.8
ServiceNameIn applies the In predicate on the "service_name" field.
func ServiceNameLT ¶ added in v1.2.8
ServiceNameLT applies the LT predicate on the "service_name" field.
func ServiceNameLTE ¶ added in v1.2.8
ServiceNameLTE applies the LTE predicate on the "service_name" field.
func ServiceNameNEQ ¶ added in v1.2.8
ServiceNameNEQ applies the NEQ predicate on the "service_name" field.
func ServiceNameNotIn ¶ added in v1.2.8
ServiceNameNotIn applies the NotIn predicate on the "service_name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶ added in v1.0.0
OrderOption defines the ordering options for the API queries.
func ByAPIGroup ¶ added in v1.0.0
func ByAPIGroup(opts ...sql.OrderTermOption) OrderOption
ByAPIGroup orders the results by the api_group field.
func ByCreatedAt ¶ added in v1.0.0
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶ added in v1.0.0
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶ added in v1.0.0
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsRequired ¶ added in v1.0.14
func ByIsRequired(opts ...sql.OrderTermOption) OrderOption
ByIsRequired orders the results by the is_required field.
func ByMethod ¶ added in v1.0.0
func ByMethod(opts ...sql.OrderTermOption) OrderOption
ByMethod orders the results by the method field.
func ByPath ¶ added in v1.0.0
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByServiceName ¶ added in v1.2.8
func ByServiceName(opts ...sql.OrderTermOption) OrderOption
ByServiceName orders the results by the service_name field.
func ByUpdatedAt ¶ added in v1.0.0
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.