def generate_mapping(database, filename=None, check_tables=True, create_tables=False): return Database.generate_mapping(database, filename, create_tables=False)
def temporary_binding(): db = Database() db.bind(**config.database) InstalledComponentEntity = InstalledComponent.create_database_entity(db.Entity) db.generate_mapping(create_tables=True) return db, InstalledComponentEntity