Made the connection string assembly more readable.
This commit is contained in:
parent
efc7b7cc6d
commit
e44aecdf79
1 changed files with 7 additions and 6 deletions
|
@ -31,12 +31,13 @@ from sqlbase7_sa.base import SQLBase7Dialect
|
|||
class SQLBase7_pyodbc(PyODBCConnector, SQLBase7Dialect):
|
||||
|
||||
def create_connect_args(self, url):
|
||||
connection_string = "DRIVER={Centura SQLBase 3.5 32-bit Driver -NT & Win95};SERVER=%s;DATABASE=%s;UID=%s;PWD=%s" % (
|
||||
url.host,
|
||||
url.database,
|
||||
url.username,
|
||||
url.password,
|
||||
)
|
||||
connection_string = ';'.join((
|
||||
"DRIVER={Centura SQLBase 3.5 32-bit Driver -NT & Win95}",
|
||||
"SERVER=%s" % url.host,
|
||||
"DATABASE=%s" % url.database,
|
||||
"UID=%s" % url.username,
|
||||
"PWD=%s" % url.password,
|
||||
))
|
||||
return [connection_string], {}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue