Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix(QueryBuilder): Restrict identifier length to 30 characters due to Oracle ↵fix/querybuilder/oracle-indentifier-length | provokateurin | 2024-09-26 | 1 | -0/+17 |
| | | | | | | limitations Signed-off-by: provokateurin <kate@provokateurin.de> | ||||
* | chore(deps): Update nextcloud/coding-standard to v1.3.1 | provokateurin | 2024-09-19 | 4 | -4/+4 |
| | | | | Signed-off-by: provokateurin <kate@provokateurin.de> | ||||
* | Merge pull request #47852 from nextcloud/sharding-code-fixes | John Molakvoæ | 2024-09-16 | 3 | -7/+7 |
|\ | |||||
| * | fix: misc code fixes around db shardingsharding-code-fixes | Robin Appelman | 2024-09-09 | 3 | -7/+7 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | fix: Adjust types of IQueryBuilder to properly allow joining with sub-query | Ferdinand Thiessen | 2024-09-10 | 2 | -2/+2 |
|/ | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de> | ||||
* | chore: adjust code to adhere to coding standard | Anna Larch | 2024-09-05 | 1 | -2/+2 |
| | | | | Signed-off-by: Anna Larch <anna@nextcloud.com> | ||||
* | chore: Apply php:cs recommendations | Louis Chemineau | 2024-08-28 | 7 | -28/+28 |
| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me> | ||||
* | fix: implement sharding compatible cleanup for various bits | Robin Appelman | 2024-08-28 | 3 | -4/+8 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | feat: implement distributing partitioned queries over multiple shards | Robin Appelman | 2024-08-28 | 14 | -17/+1145 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | feat: add option to automatically partition queries by specific tables | Robin Appelman | 2024-08-28 | 7 | -1/+878 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | feat: track expected output columns in query builder | Robin Appelman | 2024-08-28 | 2 | -0/+33 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | style: update codestyle for coding-standard 1.2.3 | Daniel Kesselberg | 2024-08-25 | 6 | -24/+24 |
| | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> | ||||
* | feat: expose escapeLikeParameter trough query builder | Robin Appelman | 2024-08-23 | 1 | -0/+4 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #44788 from nextcloud/db-error-logging | Stephan Orbaugh | 2024-07-25 | 1 | -0/+1 |
|\ | | | | | feat: add additional logging for database errors | ||||
| * | feat: add additional logging for database errors | Robin Appelman | 2024-07-24 | 1 | -0/+1 |
| | | | | | | | | | | | | including the stack trace of the current database transaction Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | fix: cast to bigint on postgresql | Robin Appelman | 2024-07-23 | 1 | -1/+1 |
|/ | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | fix(db): Fix md5 for oracle >= 20 | Joas Schilling | 2024-07-19 | 2 | -1/+5 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Manually track if `where()` is called when not empty to avoid recursion | Joas Schilling | 2024-07-19 | 1 | -19/+24 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Deprecate `IExpressionBuilder::or()` and ↵ | Joas Schilling | 2024-07-19 | 3 | -22/+24 |
| | | | | | | `IExpressionBuilder::and()` without parameters Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Deprecate `getState()` as per upstream | Joas Schilling | 2024-07-19 | 1 | -1/+4 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵ | Joas Schilling | 2024-07-19 | 1 | -30/+12 |
| | | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Deprecate using table alias for DELETE and UPDATE | Joas Schilling | 2024-07-19 | 1 | -0/+10 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Deprecate `getQueryPart()` and `resetQueryPart()` methods that will ↵ | Joas Schilling | 2024-07-19 | 1 | -0/+12 |
| | | | | | | be removed with Doctrine/DBAL 4 Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | feat: allow running QueryBuilder queries on different connections | Robin Appelman | 2024-07-15 | 2 | -41/+50 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #46397 from nextcloud/extended-query-builder-base | Robin Appelman | 2024-07-15 | 1 | -0/+290 |
|\ | | | | | feat: add base class for extending the query builder | ||||
| * | feat: add base class for extending the query builder | Robin Appelman | 2024-07-12 | 1 | -0/+290 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | feat: allow inspecting the parts of the composite expression builder | Robin Appelman | 2024-07-12 | 2 | -18/+31 |
|/ | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | chore: Add SPDX header | Andy Scherzinger | 2024-05-24 | 15 | -307/+50 |
| | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de> | ||||
* | fix(querybuilder): Remove temporary internal method executeUpdate() | Joas Schilling | 2024-04-30 | 1 | -15/+0 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix: Remove bogus code from query builder and fix parameter name | Côme Chilliet | 2024-04-30 | 1 | -6/+2 |
| | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | fix: Fix new psalm errors from update | Côme Chilliet | 2024-04-08 | 3 | -12/+3 |
| | | | | | | | Not sure about the SimpleContainer modification, let’s see what CI says about that. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Cast datetime columns in sqlite before comparing | Julius Härtl | 2023-12-29 | 3 | -86/+59 |
| | | | | | | | Move the logic to prepare a column to the parent ExpressionBuilder so that it can be reused for OCI and sqlite Signed-off-by: Julius Härtl <jus@bitgrid.net> | ||||
* | fix(workflowengine): use andWhere() not second where() | Arthur Schiwon | 2023-11-13 | 1 | -1/+1 |
| | | | | | | | - an unconditional where() condition is added right before - fixes also wrongly named methods in the Exception message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> | ||||
* | fix(dbal): Fix types in query builder methods for parameters | Joas Schilling | 2023-10-18 | 1 | -2/+2 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | Refactors "strpos" calls in lib/private to improve code readability. | Faraz Samapoor | 2023-05-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com> | ||||
* | Merge pull request #36261 from ↵ | Joas Schilling | 2023-01-23 | 1 | -0/+6 |
|\ | | | | | | | | | nextcloud/techdebt/noid/warn-devs-about-potential-bugs fix(querybuilder): Log a warning if where() is called again on a quer… | ||||
| * | fix(querybuilder): Log a warning if where() is called again on a query ↵ | Joas Schilling | 2023-01-20 | 1 | -0/+6 |
| | | | | | | | | | | | | builder object Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | composer run cs:fix | Côme Chilliet | 2023-01-20 | 4 | -4/+0 |
|/ | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | Revert "add case statement to sql function builder" | Robin Appelman | 2022-08-16 | 1 | -11/+0 |
| | | | | | | This reverts commit 2a68819a67045d87a369a8a6413f153b3b2bea5f. Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Revert "make expression build return IQueryFunction instead of string" | Robin Appelman | 2022-08-16 | 6 | -92/+85 |
| | | | | | | This reverts commit 813b50ed428a8bc36817d19c84444e96dbe3b668. Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Fix typos in lib/private subdirectory | luz paz | 2022-07-27 | 1 | -1/+1 |
| | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com> | ||||
* | add case statement to sql function builder | Robin Appelman | 2022-06-02 | 1 | -0/+11 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | make expression build return IQueryFunction instead of string | Robin Appelman | 2022-06-02 | 6 | -85/+92 |
| | | | | | | this allows passing the expressions to further expressions without them being escaped as column names Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Fix psalm issues related to the user backend | Carl Schwan | 2022-05-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | - Reflect the actual return value returned by the implementation in the the interface. E.g. IUser|bool -> IUser|false - Remove $hasLoggedIn parameter from private countUser implementation. Replace the two call with the equivalent countSeenUser - getBackend is nuallable, add this to the interface - Use backend interface to make psalm happy about call to undefined methods. Also helps with getting rid at some point of the old implementActions Signed-off-by: Carl Schwan <carl@carlschwan.eu> | ||||
* | tell mysql to ignore the sort index for search queries | Robin Appelman | 2022-04-22 | 1 | -1/+1 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #31609 from nextcloud/fix/migrate-away-from-ilogger | Côme Chilliet | 2022-03-29 | 1 | -16/+10 |
|\ | | | | | Migrate from ILogger to LoggerInterface in lib/private | ||||
| * | Fix log level for exception in QueryBuilder | Côme Chilliet | 2022-03-24 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
| * | Migrate from ILogger to LoggerInterface in lib/private | Côme Chilliet | 2022-03-24 | 1 | -16/+10 |
| | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | | Fix LENGTH function name across databases | Côme Chilliet | 2022-03-28 | 3 | -1/+13 |
| | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> | ||||
* | | Use OCTET_LENGTH which is more common than LENGTHB | Côme Chilliet | 2022-03-24 | 2 | -1/+7 |
| | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> |