Dataframes: Demonstrate pandas.read_sql() with both urllib3 vs. psycopg3#651
Merged
Conversation
4 tasks
hlcianfagna
approved these changes
Jan 10, 2025
| ======= | ||
| To watch the HTTP traffic to your local CrateDB instance, invoke:: | ||
|
|
||
| sudo ngrep -d lo0 -Wbyline port 4200 |
Contributor
There was a problem hiding this comment.
Or 5432 if they use the psycopg example
Contributor
Author
There was a problem hiding this comment.
Yeah, but sniffing the PostgreSQL wire protocol, you will probably not be able to see sensible things as a human. This is different to the HTTP protocol, because it is marshalling from/to JSON.
Do you think anything should be improved here, e.g. by adding such a comment that it only makes sense with HTTP/JSON?
Contributor
There was a problem hiding this comment.
Just for info, I regularly use this with the pgsql protocol, not everything is human-readable but SQL statements are visible in clear text which is very helpful.
Contributor
Author
There was a problem hiding this comment.
Ah. Nice to learn about. Thanks! ✨
991e5da to
d6644cb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
About
People asked about PostgreSQL wire protocol support for reading data from CrateDB into dataframes.
References
asyncpgandpsycopg3drivers sqlalchemy-cratedb#11