import os
import wmill
# You can import any PyPi package.
# See here for more info: https://www.windmill.dev/docs/advanced/dependencies_in_python
# you can use typed resources by doing a type alias to dict
#postgresql = dict
def main():
# db = wmill.datatable('named_datatable')
db = wmill.datatable('maindata')
# Postgres scripts use positional arguments
friend = db.query('SELECT * FROM my_table').fetch()
# all_friends = db.query('SELECT * FROM friend').fetch()
#print(friend)
return friend
Submitted by abhishek27836 109 days ago