qcfractal/postgres_harness.py
def create_tables(self):
        """Create database tables using SQLAlchemy models"""

        uri = self.config.database_uri()
        self.logger(f"Creating tables for database: {uri}")
        engine = create_engine(uri, echo=False, pool_size=1)

        # actually create the tables
        try:
            Base.metadata.create_all(engine)
        except Exception as e:
            raise ValueError(f"SQLAlchemy Connection Error\n {str(e)}")

        return True
Create database tables using SQLAlchemy models
Create database tables using SQLAlchemy models
Create database tables using SQLAlchemy models
def create_tables(self):
        uri = self.config.database_uri()
        self.logger(f"Creating tables for database: {uri}")
        engine = create_engine(uri, echo=False, pool_size=1)
        try:
            Base.metadata.create_all(engine)
        except Exception as e:
            raise ValueError(f"SQLAlchemy Connection Error\n {str(e)}")
        return True
def create_tables ( self ) : uri = self . config . database_uri ( ) self . logger ( f"Creating tables for database: {uri}" ) engine = create_engine ( uri , echo = False , pool_size = 1 ) try : Base . metadata . create_all ( engine ) except Exception as e : raise ValueError ( f"SQLAlchemy Connection Error\n {str(e)}" ) return True
Create database tables using SQLAlchemy models
Create database tables using SQLAlchemy models
"""Create database tables using SQLAlchemy models""" # actually create the tables
self