当前位置: 首页>>代码示例>>Golang>>正文


Golang queries.SetFrom函数代码示例

本文整理汇总了Golang中github.com/vattle/sqlboiler/queries.SetFrom函数的典型用法代码示例。如果您正苦于以下问题:Golang SetFrom函数的具体用法?Golang SetFrom怎么用?Golang SetFrom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了SetFrom函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的github.com/vattle/sqlboiler/queries.SetFrom函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。