예제 #1
0
    def __init__(self, table, dialect, db):
        """Constructor

        :param table:  table name
        :type table: str
        :param dialect: the sql dialect instance
        :param db: the database connection instance
        """
        if table:
            self._table = table
        self._db = db
        WhereQuery.__init__(self, dialect)
예제 #2
0
 def clear(self):
     """Clear and reset to orignal state"""
     WhereQuery.clear(self)
     self._table = None
     self._parameters = []
     self._sql = None
예제 #3
0
파일: delete.py 프로젝트: hilliate/dbpy
 def clear(self):
     WhereQuery.clear(self)
     self._table = None
     self._parameters = []
     self._sql = None
예제 #4
0
파일: delete.py 프로젝트: hilliate/dbpy
 def __init__(self, table, dialect, db,):
     if table:
         self._table = table
     self._db = db
     WhereQuery.__init__(self, dialect)
예제 #5
0
파일: update.py 프로젝트: hilliate/dbpy
 def clear(self):
     WhereQuery.clear(self)
     self._table = None
     self._set = []
     self._limit = None
     self.bind = []
예제 #6
0
파일: update.py 프로젝트: hilliate/dbpy
    def __init__(self, table, dialect, db):

        self._table = table
        self._db = db
        self._set = []
        WhereQuery.__init__(self, dialect)
예제 #7
0
 def clear(self):
     WhereQuery.clear(self)
     self._table = None
     self._set = []
     self._limit = None
     self.bind = []
예제 #8
0
    def __init__(self, table, dialect, db):

        self._table = table
        self._db = db
        self._set = []
        WhereQuery.__init__(self, dialect)