本文整理匯總了Python中puzzle.plugins.GeminiPlugin.build_gemini_query方法的典型用法代碼示例。如果您正苦於以下問題:Python GeminiPlugin.build_gemini_query方法的具體用法?Python GeminiPlugin.build_gemini_query怎麽用?Python GeminiPlugin.build_gemini_query使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類puzzle.plugins.GeminiPlugin
的用法示例。
在下文中一共展示了GeminiPlugin.build_gemini_query方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_build_gemini_query
# 需要導入模塊: from puzzle.plugins import GeminiPlugin [as 別名]
# 或者: from puzzle.plugins.GeminiPlugin import build_gemini_query [as 別名]
def test_build_gemini_query():
adapter = GeminiPlugin()
query = "SELECT * from variants"
extra_info = "max_aaf_all < 0.01"
new_query = adapter.build_gemini_query(query, extra_info)
assert new_query == "SELECT * from variants WHERE max_aaf_all < 0.01"
extra_info = "cadd_score > 10"
new_query = adapter.build_gemini_query(new_query, extra_info)
assert new_query == "SELECT * from variants WHERE max_aaf_all < 0.01 AND cadd_score > 10"