Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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/s/c/sc.social.viewcounter-1.0.7/sc/social/viewcounter/setuphandlers.py   sc.social.viewcounter(Download)
def create_tables(context):
    '''Called at profile import time to create necessary tables
    '''
    if isNotOurProfile(context):return
    Base.metadata.create_all(bind=Session.bind)

src/s/c/sc.social.viewcounter-1.0.7/sc/social/viewcounter/tests/tests.py   sc.social.viewcounter(Download)
            #Clean database
            Base.metadata.drop_all(bind=testSession.bind)
            Base.metadata.create_all(bind=testSession.bind)
 
        vcBrowserView = self.portal.restrictedTraverse('vc_reports')