本文整理汇总了Golang中github.com/vattle/sqlboiler/queries.SetFrom函数的典型用法代码示例。如果您正苦于以下问题:Golang SetFrom函数的具体用法?Golang SetFrom怎么用?Golang SetFrom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了SetFrom函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: Environment2PhenotypeComparison
// Environment2PhenotypeComparison pointed to by the foreign key.
func (o *Environment) Environment2PhenotypeComparison(exec boil.Executor, mods ...qm.QueryMod) phenotypeComparisonQuery {
queryMods := []qm.QueryMod{
qm.Where("environment2_id=$1", o.EnvironmentID),
}
queryMods = append(queryMods, mods...)
query := PhenotypeComparisons(exec, queryMods...)
queries.SetFrom(query.Query, "\"phenotype_comparison\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:environment.go
示例2: Dbxref
// Dbxref pointed to by the foreign key.
func (o *FeatureDbxref) Dbxref(exec boil.Executor, mods ...qm.QueryMod) dbxrefQuery {
queryMods := []qm.QueryMod{
qm.Where("dbxref_id=$1", o.DbxrefID),
}
queryMods = append(queryMods, mods...)
query := Dbxrefs(exec, queryMods...)
queries.SetFrom(query.Query, "\"dbxref\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:feature_dbxref.go
示例3: Featureprop
// Featureprop pointed to by the foreign key.
func (o *FeaturepropPub) Featureprop(exec boil.Executor, mods ...qm.QueryMod) featurepropQuery {
queryMods := []qm.QueryMod{
qm.Where("featureprop_id=$1", o.FeaturepropID),
}
queryMods = append(queryMods, mods...)
query := Featureprops(exec, queryMods...)
queries.SetFrom(query.Query, "\"featureprop\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:featureprop_pub.go
示例4: Cvterm
// Cvterm pointed to by the foreign key.
func (o *CvtermDbxref) Cvterm(exec boil.Executor, mods ...qm.QueryMod) cvtermQuery {
queryMods := []qm.QueryMod{
qm.Where("cvterm_id=$1", o.CvtermID),
}
queryMods = append(queryMods, mods...)
query := Cvterms(exec, queryMods...)
queries.SetFrom(query.Query, "\"cvterm\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:cvterm_dbxref.go
示例5: AuthRole
// AuthRole pointed to by the foreign key.
func (o *AuthUserRole) AuthRole(exec boil.Executor, mods ...qm.QueryMod) authRoleQuery {
queryMods := []qm.QueryMod{
qm.Where("auth_role_id=$1", o.AuthRoleID),
}
queryMods = append(queryMods, mods...)
query := AuthRoles(exec, queryMods...)
queries.SetFrom(query.Query, "\"auth_role\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:auth_user_role.go
示例6: Contact
// Contact pointed to by the foreign key.
func (o *Stockcollection) Contact(exec boil.Executor, mods ...qm.QueryMod) contactQuery {
queryMods := []qm.QueryMod{
qm.Where("contact_id=$1", o.ContactID),
}
queryMods = append(queryMods, mods...)
query := Contacts(exec, queryMods...)
queries.SetFrom(query.Query, "\"contact\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:stockcollection.go
示例7: SubjectContactRelationship
// SubjectContactRelationship pointed to by the foreign key.
func (o *Contact) SubjectContactRelationship(exec boil.Executor, mods ...qm.QueryMod) contactRelationshipQuery {
queryMods := []qm.QueryMod{
qm.Where("subject_id=$1", o.ContactID),
}
queryMods = append(queryMods, mods...)
query := ContactRelationships(exec, queryMods...)
queries.SetFrom(query.Query, "\"contact_relationship\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:contact.go
示例8: JbrowseTrack
// JbrowseTrack pointed to by the foreign key.
func (o *JbrowseOrganism) JbrowseTrack(exec boil.Executor, mods ...qm.QueryMod) jbrowseTrackQuery {
queryMods := []qm.QueryMod{
qm.Where("jbrowse_organism_id=$1", o.JbrowseOrganismID),
}
queryMods = append(queryMods, mods...)
query := JbrowseTracks(exec, queryMods...)
queries.SetFrom(query.Query, "\"jbrowse_track\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:jbrowse_organism.go
示例9: Genotype
// Genotype pointed to by the foreign key.
func (o *Phendesc) Genotype(exec boil.Executor, mods ...qm.QueryMod) genotypeQuery {
queryMods := []qm.QueryMod{
qm.Where("genotype_id=$1", o.GenotypeID),
}
queryMods = append(queryMods, mods...)
query := Genotypes(exec, queryMods...)
queries.SetFrom(query.Query, "\"genotype\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:phendesc.go
示例10: StockpropPub
// StockpropPub pointed to by the foreign key.
func (o *Stockprop) StockpropPub(exec boil.Executor, mods ...qm.QueryMod) stockpropPubQuery {
queryMods := []qm.QueryMod{
qm.Where("stockprop_id=$1", o.StockpropID),
}
queryMods = append(queryMods, mods...)
query := StockpropPubs(exec, queryMods...)
queries.SetFrom(query.Query, "\"stockprop_pub\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:stockprop.go
示例11: Organism
// Organism pointed to by the foreign key.
func (o *JbrowseOrganism) Organism(exec boil.Executor, mods ...qm.QueryMod) organismQuery {
queryMods := []qm.QueryMod{
qm.Where("organism_id=$1", o.OrganismID),
}
queryMods = append(queryMods, mods...)
query := Organisms(exec, queryMods...)
queries.SetFrom(query.Query, "\"organism\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:jbrowse_organism.go
示例12: Analysi
// Analysi pointed to by the foreign key.
func (o *Analysisprop) Analysi(exec boil.Executor, mods ...qm.QueryMod) analysiQuery {
queryMods := []qm.QueryMod{
qm.Where("analysis_id=$1", o.AnalysisID),
}
queryMods = append(queryMods, mods...)
query := Analyses(exec, queryMods...)
queries.SetFrom(query.Query, "\"analysis\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:analysisprop.go
示例13: File
// File pointed to by the foreign key.
func (o *Download) File(exec boil.Executor, mods ...qm.QueryMod) fileQuery {
queryMods := []qm.QueryMod{
qm.Where("id=$1", o.FileID),
}
queryMods = append(queryMods, mods...)
query := Files(exec, queryMods...)
queries.SetFrom(query.Query, "\"files\"")
return query
}
开发者ID:zqzca,项目名称:back,代码行数:13,代码来源:downloads.go
示例14: Subject
// Subject pointed to by the foreign key.
func (o *UserRelationship) Subject(exec boil.Executor, mods ...qm.QueryMod) cvtermQuery {
queryMods := []qm.QueryMod{
qm.Where("cvterm_id=$1", o.SubjectID),
}
queryMods = append(queryMods, mods...)
query := Cvterms(exec, queryMods...)
queries.SetFrom(query.Query, "\"cvterm\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:user_relationship.go
示例15: StockRelationship
// StockRelationship pointed to by the foreign key.
func (o *StockRelationshipCvterm) StockRelationship(exec boil.Executor, mods ...qm.QueryMod) stockRelationshipQuery {
queryMods := []qm.QueryMod{
qm.Where("stock_relationship_id=$1", o.StockRelationshipID),
}
queryMods = append(queryMods, mods...)
query := StockRelationships(exec, queryMods...)
queries.SetFrom(query.Query, "\"stock_relationship\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:stock_relationship_cvterm.go
示例16: AuthUser
// AuthUser pointed to by the foreign key.
func (o *AuthUserInfo) AuthUser(exec boil.Executor, mods ...qm.QueryMod) authUserQuery {
queryMods := []qm.QueryMod{
qm.Where("auth_user_id=$1", o.AuthUserID),
}
queryMods = append(queryMods, mods...)
query := AuthUsers(exec, queryMods...)
queries.SetFrom(query.Query, "\"auth_user\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:auth_user_info.go
示例17: AuthPermission
// AuthPermission pointed to by the foreign key.
func (o *AuthRolePermission) AuthPermission(exec boil.Executor, mods ...qm.QueryMod) authPermissionQuery {
queryMods := []qm.QueryMod{
qm.Where("auth_permission_id=$1", o.AuthPermissionID),
}
queryMods = append(queryMods, mods...)
query := AuthPermissions(exec, queryMods...)
queries.SetFrom(query.Query, "\"auth_permission\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:auth_role_permission.go
示例18: Environment
// Environment pointed to by the foreign key.
func (o *Phenstatement) Environment(exec boil.Executor, mods ...qm.QueryMod) environmentQuery {
queryMods := []qm.QueryMod{
qm.Where("environment_id=$1", o.EnvironmentID),
}
queryMods = append(queryMods, mods...)
query := Environments(exec, queryMods...)
queries.SetFrom(query.Query, "\"environment\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:phenstatement.go
示例19: Stockcollectionprop
// Stockcollectionprop pointed to by the foreign key.
func (o *Stockcollection) Stockcollectionprop(exec boil.Executor, mods ...qm.QueryMod) stockcollectionpropQuery {
queryMods := []qm.QueryMod{
qm.Where("stockcollection_id=$1", o.StockcollectionID),
}
queryMods = append(queryMods, mods...)
query := Stockcollectionprops(exec, queryMods...)
queries.SetFrom(query.Query, "\"stockcollectionprop\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:stockcollection.go
示例20: Phenotype
// Phenotype pointed to by the foreign key.
func (o *Phenstatement) Phenotype(exec boil.Executor, mods ...qm.QueryMod) phenotypeQuery {
queryMods := []qm.QueryMod{
qm.Where("phenotype_id=$1", o.PhenotypeID),
}
queryMods = append(queryMods, mods...)
query := Phenotypes(exec, queryMods...)
queries.SetFrom(query.Query, "\"phenotype\"")
return query
}
开发者ID:dictyBase,项目名称:Modware,代码行数:13,代码来源:phenstatement.go
注:本文中的github.com/vattle/sqlboiler/queries.SetFrom函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论