def getDBTables(uri=None):
 DB_TABLES = []
 for table in DB_SCHEMA:
  if (table.name in TABLES_REPOSITORY):
   DB_TABLES.append(TABLES_REPOSITORY[table.name])
   continue
  attrs = {'_imdbpyName': table.name, '_imdbpySchema': table, 'addIndexes': addIndexes, 'addForeignKeys': addForeignKeys}
  for col in table.cols:
   if (col.name == 'id'):
    continue
   attrs[col.name] = MAP_COLS[col.kind](**col.params)
  cls = type(table.name, (SQLObject,), attrs)
  DB_TABLES.append(cls)
  TABLES_REPOSITORY[table.name] = cls
 return DB_TABLES

def getDBTables ( uri = None ) : DB_TABLES = [ ] for table in DB_SCHEMA : if ( table . name in TABLES_REPOSITORY ) : DB_TABLES . append ( TABLES_REPOSITORY [ table . name ] ) continue attrs = { '_imdbpyName' : table . name , '_imdbpySchema' : table , 'addIndexes' : addIndexes , 'addForeignKeys' : addForeignKeys } for col in table . cols : if ( col . name == 'id' ) : continue attrs [ col . name ] = MAP_COLS [ col . kind ] ( ** col . params ) cls = type ( table . name , ( SQLObject , ) , attrs ) DB_TABLES . append ( cls ) TABLES_REPOSITORY [ table . name ] = cls return DB_TABLES
return a list of classes to be used to access the database through the sqlobject orm .