first commit
This commit is contained in:
15
u/joshuakrzemien/db_test.py
Normal file
15
u/joshuakrzemien/db_test.py
Normal 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()
|
Reference in New Issue
Block a user