Category : database-connection

I have a website for which data is being displayed in real-time. To enter data into the database, currently, I am using selenium to extract the data from other sites and then putting those data into forms and save. This includes various steps and hence delays the process. My question: Is there any process to ..

Read more

I have a simple Flask app like this : simple_app/lib/oracle.py: import cx_Oracle from flask import current_app def create_pool(): # Create session pool pool = cx_Oracle.SessionPool(user=current_app.config[‘USER’], password=current_app.config[‘PASSWD’], dsn=current_app.config[‘DSN’], min=4, max=10, increment=1, threaded=True, getmode=cx_Oracle.SPOOL_ATTRVAL_WAIT) return pool simple_app/routes/init.py: from .hello import hello_bp from .oracle_pdb_backup import oracle_pdb_backup_bp def init_app(app): app.register_blueprint(hello_bp) app.register_blueprint(oracle_pdb_backup_bp) simple_app/routes/hello.py: from flask import Blueprint, jsonify hello_bp = ..

Read more