Skip to content

Commit

Permalink
expand sql helpers docs to link related helpers
Browse files Browse the repository at this point in the history
The --select helper allows the --where and --order-by, so we should make
sure to mention that in the synopsis and in the documentation.

Refs #136
  • Loading branch information
preaction committed Nov 26, 2015
1 parent 1f6597d commit 2900375
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/ysql
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ __END__
ysql [<db_name> | --dsn <dsn>] [<query> | <query_name>] [<value>...]
ysql <db_name> --select <table>
ysql <db_name> --select <table> [--where <clause>] [--order-by <clause>]
ysql <db_name> --insert <table>
ysql <db_name> --delete <table>
ysql <db_name> --delete <table> [--where <clause>]
ysql <db_name> --save <query_name> <query>
ysql <db_name> --edit <query_name>
Expand Down Expand Up @@ -151,7 +151,8 @@ The name of a saved query. Add and edit saved queries using the C<--save> option
=head2 --select <table>
Generate a C<SELECT * FROM table> query for the given C<table>.
Generate a C<SELECT * FROM table> query for the given C<table>. Also accepts
the C<--where> and C<--order-by> options.
=head2 --insert <table>
Expand Down

0 comments on commit 2900375

Please sign in to comment.