13 lines
292 B
Python
Executable File
13 lines
292 B
Python
Executable File
import os
|
|
|
|
from wmill_pg import query
|
|
|
|
def main(
|
|
pg_con: dict, # a resource of type postgres (constrained at step 3: UI customisation)
|
|
sql_query: str = "SELECT * from demo"
|
|
):
|
|
|
|
# query that returns rows will return them as a list
|
|
return query(sql_query, pg_con)
|
|
|