Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Create all tables stored in this metadata.

Conditional by default, will not attempt to recreate tables already
present in the target database.

:param bind:
  A :class:`.Connectable` used to access the
  database; if None, uses the existing bind on this ``MetaData``, if
  any.
(more...)

src/m/d/mdemos.server-1.0.1dev/mdemos/server/websetup/schema.py   mdemos.server(Download)
    # <websetup.websetup.schema.before.metadata.create_all>
    print "Creating tables"
    model.metadata.create_all(bind=config['pylons.app_globals'].sa_engine)
    # <websetup.websetup.schema.after.metadata.create_all>
    transaction.commit()

src/m/d/mdemos.server-1.0.1dev/mdemos/server/tests/__init__.py   mdemos.server(Download)
def setup_db():
    """Method used to build a database"""
    engine = config['pylons.app_globals'].sa_engine 
    model.init_model(engine)
    model.metadata.create_all(engine)