Cosmetics

This commit is contained in:
Bernardo Damele
2010-11-03 22:07:13 +00:00
parent 71d0b1bcd7
commit b152b1a04d
2 changed files with 13 additions and 13 deletions

View File

@@ -15,6 +15,13 @@ class Replication:
replication purposes.
"""
# sqlite data types
NULL = DataType('NULL')
INTEGER = DataType('INTEGER')
REAL = DataType('REAL')
TEXT = DataType('TEXT')
BLOB = DataType('BLOB')
def __init__(self, dbpath):
self.dbpath = dbpath
self.connection = sqlite3.connect(dbpath)
@@ -67,13 +74,6 @@ class Replication:
stmt += 'WHERE %s' % condition
return self.parent.cursor.execute(stmt)
# sqlite data types
NULL = DataType('NULL')
INTEGER = DataType('INTEGER')
REAL = DataType('REAL')
TEXT = DataType('TEXT')
BLOB = DataType('BLOB')
def createTable(self, tblname, columns=None, typeless=False):
"""
This function creates Table instance with current connection settings.