Saqib Ansari
6f7d030e82
fix: IndexError while handling sql timeout error
2021-12-03 16:06:23 +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
fc65c2cd36
fix: fixed pluck in execute
2021-11-25 16:20:06 +05:30
Aradhya
f04b2157f1
refactor: getting rid of kwargs
2021-11-25 13:07:38 +05:30
Aradhya
47367fc107
Merge branch 'at/aggregations' of github.com:Aradhya-Tripathi/frappe into at/aggregation
2021-11-24 19:01:29 +05:30
Aradhya
c9b05f7d95
fix: fixed as_dict in get_values
2021-11-24 16:10:29 +05:30
Aradhya
303edc8c04
refactor: added get_sql function to query class (encapsulation++)
2021-11-24 15:53:03 +05:30
Aradhya
7a0c06b46a
fix: fixed semgrep issues
2021-11-23 15:56:55 +05:30
Aradhya
d55d19ea50
refactor: using throw instead of raise
2021-11-23 15:46:44 +05:30
Aradhya
59f54aa60c
refactor: changed default_ordering to keep_default_ordering
2021-11-23 15:26:15 +05:30
Aradhya
c4f76c0568
fix: fixed order_by arg in get_value
2021-11-23 14:21:20 +05:30
Aradhya
30278a3939
refactor: removed no_order to support order_by None as valid input
2021-11-23 13:29:59 +05:30
Aradhya
ae68ad53a7
feat: Added permissions to database API
2021-11-20 23:51:06 +05:30
Aradhya
ae59fd7c58
feat: added no_order to execute
2021-11-19 22:58:32 +05:30
Aradhya
d37aa55607
fix: fixed merged conflicts
2021-11-18 18:13:10 +05:30
Aradhya-Tripathi
b081496912
fix: added additional conditions when filters are None
2021-11-16 22:44:51 +05:30
Aradhya-Tripathi
6a8515af85
feat: Added pluck to get_values
2021-11-16 15:12:39 +05:30
Aradhya-Tripathi
952921ef79
fix: fixed list filters in get_values
2021-11-12 14:32:24 +05:30
Aradhya-Tripathi
b8340fff58
feat: Added support for Criterion objects as fieldnames
2021-11-08 15:56:20 +05:30
Gavin D'souza
c755df29bd
Merge branch 'develop' of github.com:frappe/frappe into mask-sql-errors
2021-10-26 15:37:03 +05:30
mergify[bot]
ebc29efae5
Merge pull request #14499 from ankush/configurable_max_writes
...
refactor: move max_writes constant to a class var
2021-10-25 07:01:13 +00:00
Aradhya-Tripathi
ca1d9b4514
fix: fixed sider issues
2021-10-23 16:03:29 +05:30
Aradhya-Tripathi
33775b5373
style: reverting erroneous formatting
2021-10-23 15:17:40 +05:30
Aradhya-Tripathi
94f2a6e275
feat: Added run kwarg to get_all, get_values
2021-10-23 15:08:02 +05:30
Aradhya-Tripathi
23c3079433
fix: set_value now takes for_update for pypika objects
2021-10-22 23:43:47 +05:30
Aradhya-Tripathi
e46b1d1116
feat: Added pluck in sql to mirror sql_list
2021-10-22 12:44:33 +05:30
Saqib Ansari
4f288db878
refactor: handle exception messages on client side
2021-10-19 20:00:35 +05:30
Saqib Ansari
23b8798e2a
Merge branch 'develop' of https://github.com/frappe/frappe into mask-sql-errors
2021-10-19 18:48:42 +05:30
Gavin D'souza
67647724e8
refactor(minor): DRY-er human friendly error messages
2021-10-19 18:33:31 +05:30
Saqib Ansari
6cd18711d1
chore: better message
2021-10-19 18:06:32 +05:30
Saqib
b11c99137c
chore: rename exceptions
2021-10-19 18:01:18 +05:30
Ankush Menat
a39e429005
refactor: move max_writes constant to a class var
2021-10-19 15:38:28 +05:30
Aradhya-Tripathi
8ea6158690
refactor: removed aggregation functions at db level
2021-10-14 16:13:49 +05:30
Aradhya-Tripathi
fe7b45c068
fix: fixing safeqb in server scripts
2021-10-11 14:01:17 +05:30
Gavin D'souza
4e7be5b3ec
Merge branch 'develop' of github.com:frappe/frappe into at/safeqb
2021-10-11 12:45:03 +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
f0010439c7
style: formatted code
2021-10-05 15:54:27 +05:30
Aradhya-Tripathi
25277e02da
fix: Fixed get_values
2021-10-05 15:48:52 +05:30
Saqib Ansari
4109caf1bf
chore: improve message & title
2021-09-28 16:15:24 +05:30
Saqib Ansari
e205acae3c
feat: handle timeout and deadlocks in db.sql
2021-09-28 13:14:26 +05:30
Aradhya-Tripathi
e4724f06fc
style: removed print statements
2021-09-20 23:29:23 +05:30
Aradhya-Tripathi
7f8128b27c
fix: added Column in aggregation
2021-09-20 23:00:20 +05:30
Aradhya-Tripathi
8c45157fea
feat: added aggregation using build_conditions
2021-09-20 22:52:14 +05:30
Aradhya-Tripathi
4f7446c722
refactor: changed return_query to run in database.py
2021-09-20 22:48:51 +05:30
Aradhya-Tripathi
73eb7806a8
refactor: removed aggregation from database.py
...
refactor: moved aggregate to frappe.query
2021-09-20 22:47:06 +05:30
Aradhya-Tripathi
1c2e470792
fix: fixed strings and integer representation in build_conditions
2021-09-20 22:40:20 +05:30
Aradhya-Tripathi
9c3229018e
refactor: moved count to use frappe.qb
2021-09-20 22:26:11 +05:30
Aradhya-Tripathi
3bd665ddf6
refactor: using frappe.qb for frappe.db.get_values
2021-09-20 22:21:54 +05:30
Aradhya-Tripathi
ae0c5ee291
refactor: moved to frappe.qb in frappe.db.delete
2021-09-20 22:20:40 +05:30
Aradhya-Tripathi
f36808e4cc
refactor: using Query for frappe.db.delete
2021-09-20 22:20:25 +05:30