Join Slack
Powered by
There are any community implementation for reading...
# ask-community
r
Rubén Briones
03/15/2023, 6:13 PM
There are any community implementation for reading/saving Dataframes from/to a Postgres DDBB? Or any other SQL DDBB? Thanks!
t
Tim Castillo
03/15/2023, 6:59 PM
Hi Rubén! Dagster has multiple database I/O managers that you can draw inspiration from. I'll use the DuckDB one as an example: 1.
Here is the raw base class you can inherit from that we use for our database I/O managers
2.
Here is the DuckDB I/O manager
3.
Here is the type handler that manages the data from DuckDB as a Pandas Dataframe
a. If you move up the file tree a bit, you'll see type handlers for Polars and PySpark too
D 1
3
Views
Open in Slack
Previous
Next