Пример #1
0
 def generate_mapping(database,
                      filename=None,
                      check_tables=True,
                      create_tables=False):
     return Database.generate_mapping(database,
                                      filename,
                                      create_tables=False)
Пример #2
0
 def generate_mapping(database, filename=None, check_tables=True, create_tables=False):
     return Database.generate_mapping(database, filename, create_tables=False)
Пример #3
0
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