Skip to content
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

Proposal: support for additional clauses #8

Open
mihar-22 opened this issue Jun 26, 2020 · 1 comment
Open

Proposal: support for additional clauses #8

mihar-22 opened this issue Jun 26, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mihar-22
Copy link

Support for the following clauses would make this library closer to feature complete in my opinion:

insert

api: query.insert('tableName')

output: INSERT INTO tableName

column

api: query.column('columnOne').column('columnTwo')

output: (columnOne, columnTwo)

value

api: query.value('valueOne').value('valueTwo')

output: VALUES (valueOne, valueTwo)

insert + column + value

api: query.insert('tableName').column('columnOne').column('columnTwo').value('valueOne').value('valueTwo')

output: INSERT INTO tableName (columnOne, columnTwo) VALUES (valueOne, valueTwo)

delete

api: query.delete('tableName')

output: DELETE FROM tableName

@terkelg terkelg added the enhancement New feature or request label Jul 1, 2020
@terkelg
Copy link
Owner

terkelg commented Jul 1, 2020

I agree this could be nice. I haven't worked with Postgres in a while or had the need for this feature yet. I'm open to any PR that would implement this, but I won't have time to implement this myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants