first commit

This commit is contained in:
2025-08-27 12:55:29 -04:00
commit 698ec83c96
18 changed files with 204 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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()