|
17 | 17 | #connect to database |
18 | 18 | # createconnection (dbtype, servername, dbname, username, password) |
19 | 19 | # 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') |
21 | 21 | # session_factory = dbconnection.createConnection('mysql', 'localhost', 'odm2', 'ODM', 'odm')#mysql |
22 | 22 |
|
23 | 23 | # session_factory= dbconnection.createConnection('mssql', "(local)", "ODM2", "ODM", "odm")#win MSSQL |
24 | 24 |
|
25 | | - |
26 | 25 | # session_factory= dbconnection.createConnection('mssql', "arroyoodm2", "", "ODM", "odm")#mac/linux MSSQL |
27 | 26 | # session_factory = dbconnection.createConnection('sqlite', '/Users/stephanie/DEV/YODA-Tools/tests/test_files/XL_specimen.sqlite', 2.0) |
28 | 27 |
|
29 | 28 |
|
30 | | -session_factory = dbconnection.createConnection('postgresql', 'odm2wofpy1.uwrl.usu.edu', 'odm2', 'dbadmin', 'pinkbananastastegross') |
31 | | - |
32 | 29 |
|
33 | 30 |
|
34 | 31 |
|
|
42 | 39 | create = CreateODM2(session_factory) |
43 | 40 |
|
44 | 41 |
|
45 | | - |
46 | | - |
47 | | - |
48 | 42 | # Run some basic sample queries. |
49 | 43 | # ------------------------------ |
50 | 44 | # Get all of the variables from the database and print their names to the console |
|
0 commit comments