Skip to content

Commit 4df7799

Browse files
author
sreeder
committed
all ready for merging
1 parent 53e9631 commit 4df7799

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Examples/Sample.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#connect to database
1818
# createconnection (dbtype, servername, dbname, username, password)
1919
# session_factory = dbconnection.createConnection('connection type: sqlite|mysql|mssql|postgresql', '/your/path/to/db/goes/here', 2.0)#sqlite
20-
# session_factory = dbconnection.createConnection('postgresql', 'localhost', 'odm2', 'ODM', 'odm')
20+
session_factory = dbconnection.createConnection('postgresql', 'localhost', 'odm2', 'ODM', 'odm')
2121
# session_factory = dbconnection.createConnection('mysql', 'localhost', 'odm2', 'ODM', 'odm')#mysql
2222

2323
# session_factory= dbconnection.createConnection('mssql', "(local)", "ODM2", "ODM", "odm")#win MSSQL
@@ -27,13 +27,6 @@
2727
# session_factory = dbconnection.createConnection('sqlite', '/Users/stephanie/DEV/YODA-Tools/tests/test_files/XL_specimen.sqlite', 2.0)
2828

2929

30-
session_factory = dbconnection.createConnection('postgresql', 'odm2wofpy1.uwrl.usu.edu', 'odm2', 'dbadmin', 'pinkbananastastegross')
31-
32-
33-
34-
35-
36-
3730

3831

3932

@@ -42,7 +35,7 @@
4235
create = CreateODM2(session_factory)
4336

4437

45-
ds= read.getSamplingFeatureDatasets(ids = [1001])
38+
4639

4740

4841
# Run some basic sample queries.

0 commit comments

Comments
 (0)