-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Add document saver class and support save/load/delete user journey #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Get field type information | ||
column_types = [ | ||
cast(tuple, field)[0:2] for field in result_proxy.cursor.description | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put a more illustrative comment on what this means?
I don't know whats in result_proxy.cursor.description
, or why we are casting it to a tuple and slicing (I'm assuming it's maybe col_name / col_type but it would be good to clarify what's happening).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure added comment that explains cursor.description
.
The definition of cursor.description
can be found here:
https://peps.python.org/pep-0249/#description
We need cast it to tuple here otherwise mypy will complain
error: Value of type "DBAPIType" is not indexable
@kurtisvg @averikitsch Code is ready for another round of review now. |
Add document saver class and support save/load/delete user journeys.
In detail: