Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature Request: duckdb.sql().show() should also return a formatted string #17

Closed
wernerdaehn started this conversation in Ideas
Discussion options

Currently the rel.show() method writes into the stdout. Which is okay, unless you use a logger

from logging import Logger
logger = logging.getLogger(__main__)
logger.debug(duckdb.sql(sql).show(max_width=200))

Above code does obviously not do what is intended, as show() does not return anything. So it logs 'None' and prints into the stdout anyhow.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /