sparse-pizza-79993
02/02/2024, 2:10 PMSQLAlchemyTask
plugin for anything useful?
In theory it would be really nice to avoid repeated boilerplate code but I seem to keep running into this problem of being unable to template secrets into the connection uri… specifically the combination of sqlalchemy + pyodbc requires that credentials are passed into the uri and there is no way to pass them using connect_args
. Anyone else run into problems like this?some-solstice-93243
02/05/2024, 10:34 PMSQLAlchemyTask
is the best option in general - while it is fine for selects, it does not seem to do much for inserting data.freezing-airport-6809
sparse-pizza-79993
02/07/2024, 12:45 PMconnect_args
and there’s currently no way to template secrets into the uri… I have been able to use SQLAlchemyTask
to connect to Postgres, but only because psycopg2 is able to consume connection information from the connect_args
.
Otherwise, yes it is seeming that it is just better to use sqlalchemy directly — even when only considering the select statement use case, this also gives control over things like streaming/chunked responses. It is just a little unfortunate that I have to repeat a lot of boilerplate code every time I want to do this.