summaryrefslogtreecommitdiffstats
path: root/python/pyqt/examples3/SQL/dbpar.py
blob: 90e9270490fa04097151d4779c740b7f216e1ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# sql examples default database parameter

# you can create a local_dbpar.py module with definitons
# of your own parameters to overrule these defaults

#DB_DRIVER = "QPSQL7"
DB_DRIVER = "QMYSQL3"
# list of servers
DB_HOSTNAMES = ["localhost"]
# list of databases
DB_DATABASES = ["testdb"]
# database user id
DB_USERNAME = ""
# database password
DB_PASSWORD = ""

# remove this in your local_dbpar.py
try:
    from local_dbpar import *
except:
    pass