Gavin D'souza
229e259bd2
fix: Format timedelta object accurately
2022-01-31 11:56:09 +05:30
saxenabhishek
97d6a96419
fix: timedelta parsing in pypika
2022-01-25 13:28:11 +05:30
saxenabhishek
02bdc35490
fix: make parameters for strings only
2022-01-15 14:55:28 +05:30
saxenabhishek
9121014f48
fix: ignore copy of getattr methods
2022-01-11 16:53:42 +05:30
saxenabhishek
ece1564e4d
fix: replace the field method with a column
2022-01-11 15:32:07 +05:30
saxenabhishek
471c0bd697
docs: Working of NamedParameters in qb
2022-01-11 01:01:44 +05:30
saxenabhishek
e2d49c17ff
refactor: remove reduandant func call
2022-01-11 01:01:44 +05:30
saxenabhishek
0f75394720
refactor: pythonic NamedParameterWrapper
2022-01-11 01:01:44 +05:30
Gavin D'souza
f6fba91fd2
chore(typing): Add type hints in qb builder classes
2022-01-10 13:44:23 +05:30
Gavin D'souza
04e79eb075
fix(qb:ValueWrapper): Use get_value_sql only for str values
2022-01-10 13:25:47 +05:30
Gavin D'souza
6aa9a0bef5
style: Sorted imports & whitespace consistency
2022-01-07 20:44:51 +05:30
Gavin D'souza
34a6f7adb5
fix(qb): Patch ParameterizedValueWrapper as wrapper_cls
2022-01-07 20:43:50 +05:30
Suraj Shetty
e8ced74901
Merge branch 'develop' into aks-feat-sanitise_qb_2
2021-12-12 10:16:26 +05:30
saxenabhishek
a71795afec
docs: ConstantColumn
2021-12-08 15:46:30 +05:30
saxenabhishek
9a393e5654
fix: postgres compatibility
2021-12-08 15:43:22 +05:30
Suraj Shetty
5c34405d8a
Merge branch 'develop' into aks-feat-constCol
2021-12-08 09:33:50 +05:30
saxenabhishek
4f7c8d066a
feat: build constant value cols
2021-12-07 20:55:38 +05:30
Suraj Shetty
99defea410
fix: Explicitly ignore semgrep warning
2021-12-07 16:40:45 +05:30
saxenabhishek
6120b4b3c1
fix: extend named parameters to frappe.qb.function
2021-12-06 14:32:55 +05:30
saxenabhishek
9fdacedfc8
feat: sanitise frappe.qb
2021-12-06 14:29:57 +05:30
saxenabhishek
a574c1ba88
chore: patching ValueWrapper
2021-12-06 14:27:42 +05:30
Aradhya
3243fb2083
fix: misc fixes
2021-12-06 13:04:27 +05:30
Aradhya
69108c4c86
Merge branch 'develop' of github.com:Aradhya-Tripathi/frappe into at/aggregations
2021-11-27 17:52:30 +05:30
Aradhya
b5c73648dc
refactor: made DRY-er functions
2021-11-26 15:44:14 +05:30
Aradhya
e3bdf11006
refactor: moved aggregation functions to Query Builder
2021-11-26 14:19:59 +05:30
Aradhya
22434d065c
feat: Added aggregation functions to qb functions
...
refactor: changed args to aggregation funcs to match db level aggregation funcs
2021-11-26 13:19:26 +05:30
Aradhya-Tripathi
008954aed8
feat: added Pseudocolumn to qb utils
2021-11-16 15:12:18 +05:30
Aradhya-Tripathi
4eabb7129e
feat: Added concat_ws in frappe.qb
2021-11-08 13:55:17 +05:30
mergify[bot]
00d137d1cb
Merge pull request #14454 from Aradhya-Tripathi/at/patch/builder
...
feat: prepending `tab` to doctypes in query builder
2021-10-14 11:09:42 +00:00
Aradhya-Tripathi
c6542749cd
feat: prepending tab to table name for UPDATE and INSERT
2021-10-14 15:00:01 +05:30
Gavin D'souza
2622f3398e
style: Black-ish queries
...
* feat(minor): Added DocType to frappe.query_builder namespace
2021-10-11 19:00:52 +05:30
Aradhya-Tripathi
5362d367d1
fix(minor): fixed execute_query patch
2021-10-11 14:15:01 +05:30
Aradhya-Tripathi
fe7b45c068
fix: fixing safeqb in server scripts
2021-10-11 14:01:17 +05:30
Gavin D'souza
cfa2d65394
refactor(safe_exec): Manage in-safe frappe.db.sql
...
* Check if flag in_safe_exec to check if SELECT query in frappe.db.sql
* Get rid of read_sql...refactor logic
* Enable frappe.qb just like that ;)
* Add support fro *args in .run
2021-10-11 12:28:36 +05:30
Aradhya-Tripathi
601d75ad96
refactor: modified pypika imports
2021-09-20 22:24:46 +05:30
Aradhya-Tripathi
a1ed8dc68f
feat: added support for interval
2021-09-20 22:21:11 +05:30
Gavin D'souza
6973a34828
Merge branch 'develop' into compare-columns-db_query
2021-09-16 11:40:33 +05:30
Gavin D'souza
ad5783b1c3
fix: Use PyPika's Column
...
also, Discard Data class. Since we're adding support for PyPika objects
to natively interact with the Frappe ORM, this PR brings us closer
toward that direction.
2021-09-16 11:38:23 +05:30
Gavin D'souza
53f92e5b5c
refactor: Use Query Builder instead of raw queries
2021-09-14 14:50:26 +05:30
Gavin D'souza
9a8e1413cb
Merge branch 'develop' into compare-columns-db_query
2021-08-13 11:53:41 +05:30
Gavin D'souza
8fc2577e9a
fix: Remove cross import statements
2021-08-12 17:44:14 +05:30
Gavin D'souza
233b42b945
Merge branch 'develop' of github.com:frappe/frappe into execute-query
2021-08-12 17:35:25 +05:30
Your Name
946243d511
style: split qb.table into doctype and table
2021-08-07 03:31:35 +05:30
Gavin D'souza
0839004ff3
feat: Execute queries directly in frappe.qb
2021-08-03 13:10:19 +05:30
Gavin D'souza
77895bbcfc
feat: Support for Column comparison in DatabaseQuery
2021-08-03 12:43:01 +05:30
saxenabhishek
42dc8a180f
refactor: get_table_name, run_only_if
2021-07-30 11:48:12 +05:30
saxenabhishek
7671e78487
style: minor fixes and improvements
2021-07-30 11:29:41 +05:30
saxenabhishek
639b666a0d
test: for qb builder classes
2021-07-30 11:00:35 +05:30
saxenabhishek
681d0ab995
test: for qb Match and GroupConcat
2021-07-30 11:00:35 +05:30
saxenabhishek
ce10e36725
refactor: move all pypika functions to a module
2021-07-30 11:00:35 +05:30