From 1581088c7bf28b940736664ea630c8ad8def7d4a Mon Sep 17 00:00:00 2001 From: Misha Kaletsky Date: Mon, 14 Oct 2024 17:22:37 -0400 Subject: [PATCH] add runnable \gdesc example to docs --- packages/typegen/src/types.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/typegen/src/types.ts b/packages/typegen/src/types.ts index 04b510d6..66c03ee2 100644 --- a/packages/typegen/src/types.ts +++ b/packages/typegen/src/types.ts @@ -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