本文整理匯總了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
}