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


Python Query.__init__方法代码示例

本文整理汇总了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)
开发者ID:daisaru11,项目名称:myquery,代码行数:9,代码来源:delete.py

示例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)
开发者ID:daisaru11,项目名称:myquery,代码行数:13,代码来源:insert.py

示例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)
开发者ID:daisaru11,项目名称:myquery,代码行数:15,代码来源:select.py

示例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
开发者ID:mit-dig,项目名称:air-reasoner,代码行数:19,代码来源:update.py

示例5: __init__

# 需要导入模块: from query import Query [as 别名]
# 或者: from query.Query import __init__ [as 别名]
	def __init__(self):
		Query.__init__(self)
开发者ID:fwannmacher,项目名称:pyactiverecord,代码行数:4,代码来源:calculation.py

示例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)
开发者ID:fredvdd,项目名称:Swan,代码行数:6,代码来源:model.py

示例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
开发者ID:Dlat,项目名称:quickopen,代码行数:5,代码来源:query_test.py

示例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"]
开发者ID:fginter,项目名称:dep_search,代码行数:6,代码来源:test_search.py

示例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
开发者ID:jmohr,项目名称:conrad,代码行数:5,代码来源:insert.py


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