Lines Matching full:self
16 def __init__(self,db, debug=0):
17 odb.Database.__init__(self, db, debug=debug)
18 self.SQLError = MySQLdb.Error
20 def escape(self,str):
24 def listTables(self, cursor=None):
25 if cursor is None: cursor = self.defaultCursor()
33 def listIndices(self, cursor=None):
36 def listFieldsDict(self, table_name, cursor=None):
37 if cursor is None: cursor = self.defaultCursor()
49 def alterTableToMatch(self):
50 invalidAppCols, invalidDBCols = self.checkTable()
55 col = self.getColumnDef(colname)
59 defs.append(self.colTypeToSQLType(colname, coltype, options))
63 sql = "alter table %s add column " % self.getTableName()
68 cur = self.db.defaultCursor()