dbExists is probably best implemented this way:

from sqlalchemy.inspection import inspect

def dbExists(self, dbName):
    return dbName in inspect(self.engine).get_schema_names()

Brian


On Sep 9, 2015, at 12:17 PM, Becla, Jacek <[log in to unmask]> wrote:



Begin forwarded message:

From: Jacek Becla <[log in to unmask]>
Subject: dynamic selection of utils
Date: September 9, 2015 at 11:27:46 AM PDT
To: Andy Salnikov <[log in to unmask]>

Andy

See attached, what do you think?

Jacek


Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

[log in to unmask]"><utils.py>



Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1




Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1