Merge pull request #192 from coreos-inc/sqlssl
Allow SSL cert for the database to be configured
This commit is contained in:
commit
756d6784ca
8 changed files with 45 additions and 12 deletions
|
@ -84,10 +84,11 @@ db_random_func = CallableProxy()
|
|||
db_for_update = CallableProxy()
|
||||
|
||||
|
||||
def validate_database_url(url, connect_timeout=5):
|
||||
driver = _db_from_url(url, {
|
||||
'connect_timeout': connect_timeout
|
||||
})
|
||||
def validate_database_url(url, db_kwargs, connect_timeout=5):
|
||||
db_kwargs = db_kwargs.copy()
|
||||
db_kwargs['connect_timeout'] = connect_timeout
|
||||
|
||||
driver = _db_from_url(url, db_kwargs)
|
||||
driver.connect()
|
||||
driver.close()
|
||||
|
||||
|
|
Reference in a new issue