15 lines
500 B
Python
15 lines
500 B
Python
import os
|
|
import wmill
|
|
from sqlalchemy import create_engine
|
|
import psycopg2
|
|
|
|
# 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.client.get_resource('u/joshuakrzemien/slick_postgresql')
|
|
engine = create_engine(f"postgresql+psycopg2://postgres:{db['password']}@192.168.1.41:5431/windmill_test_db")
|
|
engine.connect() |