Skip to content

Commit

Permalink
add runnable \gdesc example to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Oct 14, 2024
1 parent 1840012 commit 1581088
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/typegen/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,16 @@ export interface Options {
*
* You can test this by running `echo 'select 123' | ${your_psqlCommand} -f -`
*
* e.g. `echo 'select 1 as a, 2 as b' | docker-compose exec -T postgres psql "postgresql://postgres:postgres@localhost:5432/postgres" -f -`
* e.g. `echo 'select 1 as a, 2 as b \gdesc' | docker-compose exec -T postgres psql "postgresql://postgres:postgres@localhost:5432/postgres" -f -`
*
* You should see something like this printed:
*
* ```
* a | b
* ---+---
* 1 | 2
* (1 row)
* Column | Type
* --------+-------
* a | integer
* b | integer
* (2 rows)
* ```
*/
psqlCommand: string
Expand Down

0 comments on commit 1581088

Please sign in to comment.