Skip to content

Commit 31b86f5

Browse files
committed
update documentation #59
1 parent 5dd75ab commit 31b86f5

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

docs/Sphinx/ODM1Services.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ A single service can be run from the command line.
55

66
``python examples/flask/odm_1_1/runserver_odm_1_1.py
77
--config=lbr_config.cfg
8-
--connection=mssql+pyodbc://{user}:{password}@{host}/{db}?driver=SQL+Server+Native+Client+10.0``
8+
--connection=connection.file``
9+
10+
connection.file contains:
11+
12+
``postgresql+psycopg2://username:password/db_name``
13+
14+
``mysql+mysqldb://username:password/db_name``
915

1016
Detailed Instructions
1117
---------------------
@@ -33,6 +39,6 @@ Follow the steps below to run this example.
3339
#. Open a command window in the **examples/odm_1_1** folder and enter:
3440
``python runserver_odm11.py
3541
--config=lbr_config.cfg
36-
--connection=mssql+pyodbc://{user}:{password}@{host}/{db}?driver=SQL+Server+Native+Client+10.0y``
42+
--connection=connection.file``
3743
#. In your command window you should see a message indicating that the service
3844
is running along with instructions for accessing the service.

docs/Sphinx/ODM2Services.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ A single service can be run from the command line.
77

88
``python runserver_odm2_measurement.py
99
--config=odm2_config_measurement.cfg
10-
--connection=postgresql+psycopg2://username:password/db_name``
10+
--connection=connection.file``
1111
#. ODM2 Timeseries data use case
1212

1313
``python runserver_odm2_timeseries.py
1414
--config=odm2_config_timeseries.cfg
15-
--connection=mysql+mysqldb://username:password/db_name``
15+
--connection=connection.file``
1616

1717
Multiple services can be run from the command line
1818

1919
``python runserver_multiple.py
20-
--timeseries_connection=mysql+mysqldb://username:password/db_name
21-
--measurement_connection=postgresql+psycopg2://username:password/db_name``
20+
--timeseries_connection=connection.file
21+
--measurement_connection=connection.file``
22+
23+
connection.file contains:
24+
25+
``postgresql+psycopg2://username:password/db_name``
26+
27+
``mysql+mysqldb://username:password/db_name``
2228

2329
Detailed Instructions
2430
---------------------
@@ -43,16 +49,16 @@ Follow the steps below to run this example.
4349

4450
``python runserver_odm2_measurement.py
4551
--config=odm2_config_measurement.cfg
46-
--connection=postgresql+psycopg2://username:password/db_name``
52+
--connection=connection.file``
4753
#. In case of ODM2 timeseries data use case, open a command window in the **examples/flask/odm2/timeseries** folder and enter:
4854

4955
``python runserver_odm2_timeseries.py
5056
--config=odm2_config_timeseries.cfg
51-
--connection=mysql+mysqldb://username:password/db_name``
57+
--connection=connection.file``
5258
#. In case of multiple services, open a command window in the **examples/flask/odm2/** folder and enter:
5359

5460
``python runserver_multiple.py
5561
--timeseries_connection=mysql+mysqldb://username:password/db_name
56-
--measurement_connection=postgresql+psycopg2://username:password/db_name``
62+
--measurement_connection=connection.file``
5763
#. In your command window you should see a message indicating that the service
5864
is running along with instructions for accessing the service.

0 commit comments

Comments
 (0)