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


Python Base.select方法代碼示例

本文整理匯總了Python中Src.Function.Base.Base.select方法的典型用法代碼示例。如果您正苦於以下問題:Python Base.select方法的具體用法?Python Base.select怎麽用?Python Base.select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Src.Function.Base.Base的用法示例。


在下文中一共展示了Base.select方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: get_testResultOrderByIfName

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_testResultOrderByIfName(self):
     """
     查詢y接口狀態
     :param if_name:'a01'
     :return:[{}]
     """
     kwargs = dict(table=self.table, order='if_name')
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:10,代碼來源:test_result.py

示例2: get_testResultByIfName

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_testResultByIfName(self, if_name):
     """
     查詢y接口狀態
     :param if_name:'a01'
     :return:{}
     """
     where = "if_name='%s'" % if_name
     kwargs = dict(table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:11,代碼來源:test_result.py

示例3: get_testResultByUrl

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_testResultByUrl(self, url):
     """
     根據url查詢全部數據
     :param url:
     :return:
     """
     where = "url_target LIKE '"+url+"%'"
     kwargs = dict(table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:11,代碼來源:test_short_url.py

示例4: get_testShortUrlByTag

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_testShortUrlByTag(self, short_tag):
     """
     查詢y接口狀態
     :param short_tag:'ssdf'
     :return:{}
     """
     where = "short_tag='%s'" % short_tag
     kwargs = dict(table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:11,代碼來源:test_short_url.py

示例5: getApiPassRateWphByIfName

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def getApiPassRateWphByIfName(self, if_name):
     """
     查詢y接口通過率
     :param if_name:'a01'
     :return:{}
     """
     data = "round(((`pass_num`)/(fail_num+pass_num)*100),2) AS pass_rate, if_name"
     where = "if_name='%s'" % if_name
     kwargs = dict(data=data, table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:12,代碼來源:api_pass_rate_wph.py

示例6: get_apiPerformanceAvgByIfName

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_apiPerformanceAvgByIfName(self, if_name):
     """
     查詢y接口響應時間
     :param if_name:'a01'
     :return:{}
     """
     data = "if_name,res_time_avg"
     where = "if_name='%s'" % if_name
     kwargs = dict(data=data, table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:12,代碼來源:api_performance_avg.py

示例7: get_apiPerformanceAvgByIfName

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_apiPerformanceAvgByIfName(self, if_name):
     """
     查詢接口平均響應時間
     :param if_name:
     :return: {}
     """
     data = "round(AVG(res_time),4) as res_time,if_name"
     where = "if_name='%s'" % if_name
     kwargs = dict(data=data, table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:12,代碼來源:api_performance.py

示例8: select

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def select(self, data='', where='', limit='', order='', group=''):
     """
     查詢當前表
     :param data:
     :param where:
     :param limit:
     :param order:
     :param group:
     :return:
     """
     kwargs = dict(data=data, table=self.table, where=where, limit=limit, order=order, group=group)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:14,代碼來源:short_url.py

示例9: select_todo

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def select_todo(self, data='', where='', limit='', order='', group=''):
     kwargs = dict(data=data, table=self.table, where=where, limit=limit, order=order, group=group)
     result = Base.select(self, **kwargs)
     return result
開發者ID:xcma,項目名稱:selenium,代碼行數:6,代碼來源:todo.py

示例10: get_testResultByUrl

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_testResultByUrl(self, url):
     where = "url_target LIKE '"+url+"%'"
     kwargs = dict(table=self.table, where=where)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:6,代碼來源:test_result.py

示例11: get_allType

# 需要導入模塊: from Src.Function.Base import Base [as 別名]
# 或者: from Src.Function.Base.Base import select [as 別名]
 def get_allType(self):
     data = "DISTINCT type"
     kwargs = dict(data=data, table=self.table)
     return Base.select(self, **kwargs)
開發者ID:xcma,項目名稱:selenium,代碼行數:6,代碼來源:test_result.py


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