本文整理汇总了Golang中github.com/vattle/sqlboiler/boil.WrapErr函数的典型用法代码示例。如果您正苦于以下问题:Golang WrapErr函数的具体用法?Golang WrapErr怎么用?Golang WrapErr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了WrapErr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}
示例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
}