Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sqlalchemy check if database exists

# pip install sqlalchemy-utils

from sqlalchemy_utils.functions import database_exists

if database_exists(app.config["SQLALCHEMY_DATABASE_URI"]):
    # do stuff
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sqlalchemy #check #database #exists
ADD COMMENT
Topic
Name
3+3 =