Skip to content

Commit

Permalink
Merge pull request #4793 from tbbuck/dot-commands-once-macos-clipboar…
Browse files Browse the repository at this point in the history
…d-tip

Add tip box: output to clipboard via .once |pbcopy
  • Loading branch information
szarnyasg authored Feb 14, 2025
2 parents 4bccf21 + 902ccbd commit f32f95b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/clients/cli/dot_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ The results then open in the default text file editor of the system, for example

<img src="/images/cli_docs_output_to_text_editor.jpg" alt="cli_docs_output_to_text_editor" title="Output to text editor" style="width:293px;"/>

> Tip macOS users can copy the results to their clipboards using [`pbcopy`](https://ss64.com/mac/pbcopy.html) by using `.once` to output to `pbcopy` via a pipe: `.once |pbcopy`
>
> Combining this with the `.headers off` and `.mode lines` options can be particularly effective.
## Querying the Database Schema

All DuckDB clients support [querying the database schema with SQL]({% link docs/sql/meta/information_schema.md %}), but the CLI has additional [dot commands]({% link docs/clients/cli/dot_commands.md %}) that can make it easier to understand the contents of a database.
Expand Down

0 comments on commit f32f95b

Please sign in to comment.