Blame view

resources/db_config.py 1.52 KB
d086fdc1   hitier   Main config file ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SQLITE = {
    'file': '/home/user/tmp/pdc.db'
}
sqlite_uri = 'sqlite:///%(file)s' % SQLITE

MYSQL = {
    'user': 'mysql',
    'pw': 'mysql',
    'db': 'pdc_dev',
    'host': '127.0.0.1',
    'port': '3306',
}
mysql_uri = 'mysql+pymysql://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s' % MYSQL

2784d9cc   hitier   Add models for ch...
15
POSTGRES = {
d086fdc1   hitier   Main config file ...
16
17
18
    'user': 'aroma-user',
    'pw': 'aroma-pwd',
    'db': 'aroma-db',
2784d9cc   hitier   Add models for ch...
19
    'host': '127.0.0.1',
d086fdc1   hitier   Main config file ...
20
    'port': '5432',
2784d9cc   hitier   Add models for ch...
21
22
23
}
postgres_uri = 'postgresql://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s' % POSTGRES

d086fdc1   hitier   Main config file ...
24
25
26
27
28
29
POSTGRESDEV = {
    'user': 'aroma-user',
    'pw': 'aroma-pwd',
    'db': 'aroma-dev-db',
    'host': '127.0.0.1',
    'port': '5433',
2784d9cc   hitier   Add models for ch...
30
}
d086fdc1   hitier   Main config file ...
31
postgres_dev_uri = 'postgresql://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s' % POSTGRESDEV
2784d9cc   hitier   Add models for ch...
32

d086fdc1   hitier   Main config file ...
33
34
35
36
37
38
39
40
POSTGRESTEST = {
    'user': 'aroma-user',
    'pw': 'aroma-pwd',
    'db': 'aroma-test-db',
    'host': '127.0.0.1',
    'port': '5434',
}
postgres_test_uri = 'postgresql://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s' % POSTGRESTEST
2784d9cc   hitier   Add models for ch...
41

21724174   hitier   Fix mysql_lesia_u...
42
# The lesia mysql agents database
d086fdc1   hitier   Main config file ...
43
MYSQL_LESIA = {
2784d9cc   hitier   Add models for ch...
44
45
46
47
48
49
    'user': 'mysql',
    'pw': 'mysql',
    'db': 'pdc_dev',
    'host': '127.0.0.1',
    'port': '3306',
}
d086fdc1   hitier   Main config file ...
50
51
52
53
54
55
56
57
58
59
60
mysql_lesia_uri = 'mysql+pymysql://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s' % MYSQL

# Here, set you database uri
# will be imported in ./pdc_config.py
#
# sqlalchemy_database_uri = 'sqlite:///:memory:'
# sqlalchemy_database_uri = 'sqlite:///another-app.db'
# sqlalchemy_database_uri = postgres_uri
# sqlalchemy_testdb_uri = postgres_test_uri
# sqlalchemy_devdb_uri = postgres_dev_uri
sqlalchemy_devdb_uri = 'sqlite:///another-app.db'