本文整理匯總了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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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
示例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)
示例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)