mistic100 / mistic100/jQuery-QueryBuilder
SELECT/ORDER/JOINS with jQuery Query Builder?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 544
- PR merge metrics
- No merged PRs in 30d
Description
Hello all,
Firstly, thank you very much for your hard work on this project - it has been very useful to me.
I have an issue though - when using SQL, how would one specify SELECT statements? Here's the example I'm trying to achieve:
SELECT city, airport
FROM mytable
WHERE owner = "admin"
AND (
city = "Venice"
OR city = "Palma"
);
My database table is, very simply, as follows:
+--------------------------------------+
| city | owner | airport |
+--------------------------------------+
| ... | ... | ... |
| | | |
+--------------------------------------+
The query builder handles the WHERE part very well, but could it be used to express SELECTs as well? And building upon that, what about COUNT() and GROUP BY, or ORDER BY and LIMIT? Is that something that I could start doing with the query builder or would I have to write it all myself?
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named; begin by tracing the existing WHERE-building API and its documentation. The scope must first be agreed for SELECT, COUNT, GROUP BY, ORDER BY, and LIMIT, with tests defining which SQL expressions are supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery, sql
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100