本文整理汇总了Python中query.Query.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Query.__init__方法的具体用法?Python Query.__init__怎么用?Python Query.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类query.Query
的用法示例。
在下文中一共展示了Query.__init__方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, dbconn, table):
Query.__init__(self, dbconn)
self._where = None
self._target = None
self.target(table)
示例2: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, dbconn, table):
Query.__init__(self, dbconn)
self._target = None
self._cols = None
self._values = None
self._values_cache = None
self._options = {}
self._opt_allow = ['ignore']
self.target(table)
示例3: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, dbconn, *tables):
Query.__init__(self, dbconn)
self._options = None
self._cols = None
self._target = None
self._where = None
self._join = None
self._groupby = None
self._orderby = None
self._limit = None
self.target(*tables)
示例4: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self,
store,
unmatched, # List of statements we are trying to match CORRUPTED
template, # formula
variables, # List of variables to match and return CORRUPTED
existentials, # List of variables to match to anything
# Existentials or any kind of variable in subexpression
workingContext,
conclusion, # Things to be added
retraction, # Things to be deleted
rule): # The rule statement
Query.__init__(self, store, unmatched=unmatched, template=template, variables=variables,
existentials= existentials,
workingContext= workingContext,
conclusion=conclusion, targetContext = workingContext, rule=rule)
self.retraction = retraction
示例5: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self):
Query.__init__(self)
示例6: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, model, model_type, **filters):
# print "Single Query: %s, %s, %s, %s" % (model, table, instance_type, filters)
self.model_type = model_type
Query.__init__(self, model, model_type, **filters)
示例7: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, *args, **kwargs):
Query.__init__(self, *args, **kwargs)
self.did_call_execute_nocache = False
示例8: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self):
Query.__init__(self)
self.query_fields=[u"!d_deps_nsubj-cop"]
self.words=[u"Turku"]
示例9: __init__
# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
def __init__(self, table=None, **kwargs):
Query.__init__(self, table)
self.updates = kwargs