def syncdb(pool=None):
    """
    Create tables if they don't exist
    """
    from flask_philo_sqlalchemy.schema import Base  # noqa
    from flask_philo_sqlalchemy.orm import BaseModel  # noqa
    from flask_philo_sqlalchemy.connection import create_pool

    if pool is None:
        pool = create_pool()

    for conn_name, conn in pool.connections.items():
        Base.metadata.create_all(conn.engine)
def syncdb ( pool = None ) : from flask_philo_sqlalchemy . schema import Base from flask_philo_sqlalchemy . orm import BaseModel from flask_philo_sqlalchemy . connection import create_pool if pool is None : pool = create_pool ( ) for conn_name , conn in pool . connections . items ( ) : Base . metadata . create_all ( conn . engine )
Create tables if they don't exist