-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ysql] Add SQL helper options #136
Labels
Comments
Using SQL::Abstract would make this easy even! |
We should have:
|
preaction
added a commit
that referenced
this issue
Nov 25, 2015
The `--select <table>` query helper quickly creates a 'SELECT * FROM <table>' query for you, in a lot less typing. The `--insert <table>` query helper is even better: For each document on STDIN, it creates the right `INSERT INTO <table> (<fields>) VALUES (<values>)` query. This removes the need to use the somewhat clumsy interpolation syntax to do something simple like inserting entire documents. Uses the SQL::Abstract module to do the dirty work. Refs #136
preaction
added a commit
that referenced
this issue
Nov 25, 2015
Now we can add some basic filtering when using the query helpers. Refs #136
preaction
added a commit
that referenced
this issue
Nov 25, 2015
This adds the ability to sort to a `--select` query. Refs #136
Still need to do |
preaction
added a commit
that referenced
this issue
Nov 26, 2015
The `--delete` helper option allows us to generate `DELETE FROM` queries, optionally with a `WHERE` clause (the `--where` option). Refs #136
preaction
added a commit
that referenced
this issue
Nov 26, 2015
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be really nice if
ysql
could write our SQL for us. There are lots of very common things that should be a lot easier to do, like:The typing saved, especially on the
--insert
, is enormous!The text was updated successfully, but these errors were encountered: