1 | import os |
2 | import wmill |
3 |
|
4 | # You can import any PyPi package. |
5 | # See here for more info: https: |
6 |
|
7 | # you can use typed resources by doing a type alias to dict |
8 | #postgresql = dict |
9 |
|
10 |
|
11 |
|
12 | def main(): |
13 | # db = wmill.datatable('named_datatable') |
14 | db = wmill.datatable('maindata') |
15 |
|
16 | # Postgres scripts use positional arguments |
17 | friend = db.query('SELECT * FROM my_table').fetch() |
18 | # all_friends = db.query('SELECT * FROM friend').fetch() |
19 | #print(friend) |
20 | return friend |
21 |
|
22 | |