mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
### The problem: I often need to copy the output of an `Explain` statement to my clipboard. Currently this is not possible because it currently will only write to stdout. All other limbo output, I am able to run `.output file` in the CLI, then enter my query and in another tmux pane I simply `cat file | xclip -in -selection clipboard`. ### The solution: Expose a `statement.explain()` method that returns the query explanation as a string. If the user uses something like `execute` instead of prepare, it will default to `stdout` as expected, but this allows the user to access the query plan on the prepared statement and do with it what they please. Closes #1166