當前位置: 首頁>>代碼示例>>Golang>>正文


Golang boil.WrapErr函數代碼示例

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


注:本文中的github.com/vattle/sqlboiler/boil.WrapErr函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。