Linking SQL/polars/pandas database with aggrid allowing dynamic editing and replacement of values #2831
vickorian
started this conversation in
Show and tell
Replies: 2 comments
-
Thanks for sharing, @vickorian! 😀 |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you pivot in aggrid UI does it use the pandas back end? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So this is a basic example for how to interact with an SQL database and link it with AgGrid. Any edits to AgGrid will automatically be updated to the SQL database by pulling the row data for the edit, and dynamically writing the SQL query. Polars supports writing dataframe queries in the style of SQL, so it should be possible to adapt this pretty easily.
If you are working with a small database it shouldn't take that long, but wrapping this in an async await might help if your database is taking too long and blocking your UI.
This is something people have been bringing up, so i thought it might spark interest.
Beta Was this translation helpful? Give feedback.
All reactions