本文整理汇总了Golang中github.com/vattle/sqlboiler/boil.WrapErr函数的典型用法代码示例。如果您正苦于以下问题:Golang WrapErr函数的具体用法?Golang WrapErr怎么用?Golang WrapErr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了WrapErr函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: OneP
// OneP returns a single featureCvtermprop record from the query, and panics on error.
func (q featureCvtermpropQuery) OneP() *FeatureCvtermprop {
o, err := q.One()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:feature_cvtermprop.go
示例2: CountP
// CountP returns the count of all FeaturepropPub records in the query, and panics on error.
func (q featurepropPubQuery) CountP() int64 {
c, err := q.Count()
if err != nil {
panic(boil.WrapErr(err))
}
return c
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:featureprop_pub.go
示例3: FindFeaturepropPubGP
// FindFeaturepropPubGP retrieves a single record by ID, and panics on error.
func FindFeaturepropPubGP(featurepropPubID int, selectCols ...string) *FeaturepropPub {
retobj, err := FindFeaturepropPub(boil.GetDB(), featurepropPubID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:featureprop_pub.go
示例4: FeaturepropPubExistsGP
// FeaturepropPubExistsGP checks if the FeaturepropPub row exists. Panics on error.
func FeaturepropPubExistsGP(featurepropPubID int) bool {
e, err := FeaturepropPubExists(boil.GetDB(), featurepropPubID)
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:featureprop_pub.go
示例5: OneP
// OneP returns a single featurepropPub record from the query, and panics on error.
func (q featurepropPubQuery) OneP() *FeaturepropPub {
o, err := q.One()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:featureprop_pub.go
示例6: FindTableinfoP
// FindTableinfoP retrieves a single record by ID with an executor, and panics on error.
func FindTableinfoP(exec boil.Executor, tableinfoID int, selectCols ...string) *Tableinfo {
retobj, err := FindTableinfo(exec, tableinfoID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:tableinfo.go
示例7: AllP
// AllP returns all FeatureDbxref records from the query, and panics on error.
func (q featureDbxrefQuery) AllP() FeatureDbxrefSlice {
o, err := q.All()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:feature_dbxref.go
示例8: CountP
// CountP returns the count of all AuthUserRole records in the query, and panics on error.
func (q authUserRoleQuery) CountP() int64 {
c, err := q.Count()
if err != nil {
panic(boil.WrapErr(err))
}
return c
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例9: ExistsP
// Exists checks if the row exists in the table, and panics on error.
func (q authUserRoleQuery) ExistsP() bool {
e, err := q.Exists()
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例10: OneP
// OneP returns a single authUserRole record from the query, and panics on error.
func (q authUserRoleQuery) OneP() *AuthUserRole {
o, err := q.One()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例11: AllP
// AllP returns all AuthUserRole records from the query, and panics on error.
func (q authUserRoleQuery) AllP() AuthUserRoleSlice {
o, err := q.All()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例12: AuthUserRoleExistsP
// AuthUserRoleExistsP checks if the AuthUserRole row exists. Panics on error.
func AuthUserRoleExistsP(exec boil.Executor, authUserRoleID int) bool {
e, err := AuthUserRoleExists(exec, authUserRoleID)
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例13: AuthUserRoleExistsGP
// AuthUserRoleExistsGP checks if the AuthUserRole row exists. Panics on error.
func AuthUserRoleExistsGP(authUserRoleID int) bool {
e, err := AuthUserRoleExists(boil.GetDB(), authUserRoleID)
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例14: FindFeatureCvtermpropGP
// FindFeatureCvtermpropGP retrieves a single record by ID, and panics on error.
func FindFeatureCvtermpropGP(featureCvtermpropID int, selectCols ...string) *FeatureCvtermprop {
retobj, err := FindFeatureCvtermprop(boil.GetDB(), featureCvtermpropID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:feature_cvtermprop.go
示例15: ExistsP
// Exists checks if the row exists in the table, and panics on error.
func (q tableinfoQuery) ExistsP() bool {
e, err := q.Exists()
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:tableinfo.go
示例16: FindAuthUserRoleGP
// FindAuthUserRoleGP retrieves a single record by ID, and panics on error.
func FindAuthUserRoleGP(authUserRoleID int, selectCols ...string) *AuthUserRole {
retobj, err := FindAuthUserRole(boil.GetDB(), authUserRoleID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例17: FindTableinfoGP
// FindTableinfoGP retrieves a single record by ID, and panics on error.
func FindTableinfoGP(tableinfoID int, selectCols ...string) *Tableinfo {
retobj, err := FindTableinfo(boil.GetDB(), tableinfoID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:tableinfo.go
示例18: FindAuthUserRoleP
// FindAuthUserRoleP retrieves a single record by ID with an executor, and panics on error.
func FindAuthUserRoleP(exec boil.Executor, authUserRoleID int, selectCols ...string) *AuthUserRole {
retobj, err := FindAuthUserRole(exec, authUserRoleID, selectCols...)
if err != nil {
panic(boil.WrapErr(err))
}
return retobj
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:auth_user_role.go
示例19: OneP
// OneP returns a single featureDbxref record from the query, and panics on error.
func (q featureDbxrefQuery) OneP() *FeatureDbxref {
o, err := q.One()
if err != nil {
panic(boil.WrapErr(err))
}
return o
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:feature_dbxref.go
示例20: TableinfoExistsGP
// TableinfoExistsGP checks if the Tableinfo row exists. Panics on error.
func TableinfoExistsGP(tableinfoID int) bool {
e, err := TableinfoExists(boil.GetDB(), tableinfoID)
if err != nil {
panic(boil.WrapErr(err))
}
return e
}
开发者ID:dictyBase,项目名称:Modware,代码行数:9,代码来源:tableinfo.go
注:本文中的github.com/vattle/sqlboiler/boil.WrapErr函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论