Faris Ansari
e272adb0b1
fix: use table.field instead Field('field')
2022-12-31 22:17:39 +05:30
Faris Ansari
847206222f
fix: delete option
2022-12-31 22:17:20 +05:30
Faris Ansari
726fcfdb79
refactor: qb.engine
...
- simplify
- qb.engine.get_query -> qb.get_query
- qb.engine.build_conditions -> qb.get_query
2022-12-25 23:19:11 +05:30
Aradhya
8b73108270
feat: added PseudoColumnMapper for postgres support
2022-11-03 20:43:24 +05:30
Aradhya
e1719fd30c
feat: Added support for table_field.fieldname and tests
2022-11-03 03:56:59 +05:30
Aradhya
88d506864b
refactor: consistent quries and better naming
2022-11-02 17:21:37 +05:30
Aradhya
0bc2ba0545
refactor: better naming
2022-11-02 02:40:23 +05:30
Aradhya
e5d19d78d7
feat: considering parenttype while joining
2022-11-02 02:39:53 +05:30
Aradhya
8e118773f3
refactor: joining tables
2022-11-01 14:35:37 +05:30
Aradhya
5703303abb
Merge branch 'develop' of https://github.com/frappe/frappe into qb-fixes
2022-11-01 13:45:11 +05:30
Ankush Menat
fec24632a9
style: format
...
[skip ci]
2022-11-01 13:36:37 +05:30
Aradhya Tripathi
5ed696cd3d
fix(qb): fixed implicit join for child tables ( #18692 )
...
* test: Added test for multiple joins
2022-11-01 11:25:02 +05:30
Aradhya
e6a281f19e
refactor: better naming
2022-10-27 13:11:15 +05:30
Aradhya
15db8228f4
fix: adding additional conditions
2022-10-26 15:58:24 +05:30
Aradhya
e16ca03572
fix: fixed multiple descendants
2022-10-25 20:34:47 +05:30
Aradhya
69112cec39
refactor: removed static methods
2022-10-25 18:05:48 +05:30
Aradhya
a65db344ee
fix: empty nested result clause
2022-10-21 19:44:15 +05:30
Aradhya
35ce3c0ecc
fix: fixed nested query results
2022-10-21 16:10:22 +05:30
Aradhya
48f2080769
refactor: better function naming
2022-10-20 22:35:08 +05:30
Aradhya
4a573e252c
Merge branch 'develop' of https://github.com/frappe/frappe into qb-fixes
2022-10-20 22:25:44 +05:30
Aradhya Tripathi
457de5c6b3
fix: stripping comments sent to the database API ( #18229 )
...
* feat: stripping comments sent to the database API
* test: Added tests for comment stripping
* fix: only stripping comments in string fields
* refactor: removing on the fly mutations
* refactor: added helper to avoid mutations
* refactor: simplify sanitization
* refactor: removing indexing from everywhere
* refactor: readable functions
* test: only run mdb test on mdb
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-12 16:36:55 +05:30
Aradhya
ee3651b103
refactor: separated nested set logic
2022-09-20 01:54:41 +05:30
Aradhya
38f1a9708a
refactor: simplified logic
2022-09-20 01:45:20 +05:30
Aradhya
520c8503a8
refactor: using cached property
2022-09-05 16:04:38 +05:30
Aradhya
ae18f74311
feat: Added nested set support
2022-09-03 19:15:35 +05:30
Aradhya
3cb98121a8
refactor: more PseudoColumn checks :(
2022-09-02 00:16:08 +05:30
Aradhya
0c09dd4863
fix: not joining twice implicitly
2022-09-01 20:03:43 +05:30
Aradhya
e576d16855
refactor: using refactored TABLE_PATTERN for finding fields
2022-08-31 15:44:43 +05:30
Aradhya
c55afe23f8
refactor: removed flaky implicit joins
2022-08-30 16:40:47 +05:30
Aradhya
ec100d7a8a
fix: misc fixes
2022-08-30 16:36:00 +05:30
Aradhya
f36eda1e83
refactor: using enumerate while indexing on the fly
2022-08-24 14:44:18 +05:30
Aradhya
8fe5a64140
fix: fixed complex toupper implementation
2022-08-24 14:39:43 +05:30
Aradhya
712416ceb0
refactor: changed function name to better define usage
2022-08-22 14:52:41 +05:30
Aradhya
535b64931e
refactor: using enumerate to iterate over fields & warn when passing query object to def sql
2022-08-22 14:49:30 +05:30
Aradhya
0d4020e3ed
refactor: removed excess branching
2022-08-20 19:27:14 +05:30
Aradhya
0b50e6371b
refactor(minor): lint
2022-08-19 16:01:38 +05:30
Aradhya
e400df90ff
refactor: removed iterable from iteration ;/
2022-08-19 15:56:34 +05:30
Aradhya
0addffafb9
refactor: minor changes
2022-08-17 19:52:51 +05:30
Aradhya
40bfad9aeb
refactor: moved join operations to function
2022-08-14 15:24:06 +05:30
Aradhya
caab7ff863
fix: fixed foreign doctype parsing in get_query
...
lint: removed redundant imports
2022-08-11 18:33:36 +05:30
Aradhya
306e259847
fix: fixed join logic
2022-08-11 00:13:07 +05:30
Aradhya
85d1e41738
fix: fixed join query from fields
2022-08-10 23:42:01 +05:30
Aradhya
f4eaa4a481
feat: joining on tables mentioned in fields
2022-08-10 01:24:26 +05:30
Aradhya
2ed0e1e648
fix: fixed filters when getting field names from child tables
2022-08-05 14:51:44 +05:30
Aradhya
4df8b18503
fix: fixed fields when getting field names from child tables
2022-08-04 18:58:03 +05:30
Aradhya
5792265f77
feat: Added support for fieldnames from child tables
2022-08-03 16:31:04 +05:30
Aradhya Tripathi
5ccaebca34
Merge branch 'develop' into get-all-mod
2022-07-29 14:27:37 +05:30
Shariq Ansari
a772cc0796
fix: removing unused import line ( #17654 )
2022-07-29 10:24:49 +05:30
Aradhya
6c905233c5
feat: Added support for string filters in query
2022-07-28 23:55:58 +05:30
Aradhya
65e0251e70
feat: Added support for "`" in alias name
2022-07-27 18:38:02 +05:30