Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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> | ||||
* | Merge pull request #47675 from nextcloud/adapterQueryOpti | John Molakvoæ | 2024-09-04 | 1 | -12/+12 |
|\ | |||||
| * | fix: psalm | Git'Fellow | 2024-09-02 | 1 | -1/+1 |
| | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | ||||
| * | fix: psalm | Git'Fellow | 2024-09-02 | 1 | -2/+2 |
| | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | ||||
| * | chore(db): Make the query more simpler to read | Git'Fellow | 2024-09-02 | 1 | -14/+14 |
| | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> | ||||
* | | Merge pull request #47640 from nextcloud/fix/migrator-replica | Julius Härtl | 2024-09-02 | 1 | -1/+1 |
|\ \ | |/ |/| | fix: Run migration sql as statement so that the primary db node is used | ||||
| * | fix: Run migration sql as statement so that the primary db node is used | Julius Härtl | 2024-08-30 | 1 | -1/+1 |
| | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> | ||||
* | | fix(DB): do not assume sharding is always enabled | Arthur Schiwon | 2024-08-29 | 1 | -13/+19 |
| | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> | ||||
* | | fix(DB): set sharding parameters only when intended | Arthur Schiwon | 2024-08-29 | 1 | -5/+10 |
|/ | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> | ||||
* | Merge pull request #47515 from nextcloud/bugfix/noid/fix-migration-sorting | Andy Scherzinger | 2024-08-28 | 1 | -13/+21 |
|\ | | | | | fix(migration): Correctly sort migrations by version number | ||||
| * | fix(migration): Correctly sort migrations by version number | Joas Schilling | 2024-08-27 | 1 | -13/+21 |
| | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | | chore: Apply php:cs recommendations | Louis Chemineau | 2024-08-28 | 8 | -30/+30 |
| | | | | | | | | 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> | ||||
* | | fix: only allow pre-defined shards | Robin Appelman | 2024-08-28 | 1 | -8/+30 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | feat: implement distributing partitioned queries over multiple shards | Robin Appelman | 2024-08-28 | 18 | -21/+1247 |
| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | | feat: add option to automatically partition queries by specific tables | Robin Appelman | 2024-08-28 | 9 | -2/+970 |
| | | | | | | | | 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> | ||||
* | fix(db): Increase log level for very slow transactions | Christoph Wurst | 2024-08-27 | 1 | -2/+29 |
| | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
* | style: update codestyle for coding-standard 1.2.3 | Daniel Kesselberg | 2024-08-25 | 12 | -47/+47 |
| | | | | 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> | ||||
* | fix: fix passing additional db connection parameters in factory | Robin Appelman | 2024-07-31 | 1 | -25/+20 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | Merge pull request #44788 from nextcloud/db-error-logging | Stephan Orbaugh | 2024-07-25 | 3 | -4/+52 |
|\ | | | | | feat: add additional logging for database errors | ||||
| * | feat: add additional logging for database errors | Robin Appelman | 2024-07-24 | 3 | -4/+52 |
| | | | | | | | | | | | | 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 | 4 | -1/+23 |
| | | | | 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 | 4 | -28/+30 |
| | | | | | | `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 | 4 | -51/+40 |
| | | | | | | 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): `Doctrine\DBAL\Connection::executeUpdate()` is deprecated | Joas Schilling | 2024-07-19 | 1 | -4/+1 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Fix internal calls to doctrine's `fetch()` methods | Joas Schilling | 2024-07-19 | 1 | -5/+12 |
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> | ||||
* | fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is ↵ | Joas Schilling | 2024-07-19 | 3 | -5/+5 |
| | | | | | | deprecated 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> | ||||
* | feat: add commands for exporting current and expected database schema | Robin Appelman | 2024-07-02 | 2 | -3/+7 |
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> | ||||
* | feat(dbal): add proper insert ignore conflict method for SQLite | Benjamin Gaussorgues | 2024-06-25 | 1 | -0/+15 |
| | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | ||||
* | feat(dbal): add proper insert ignore conflict method for MySQL | Benjamin Gaussorgues | 2024-06-25 | 1 | -0/+28 |
| | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> | ||||
* | feat(db): remove workaround for pqsql 9.4 and older | Daniel Kesselberg | 2024-06-03 | 1 | -18/+0 |
| | | | | | | | | The workaround was required because "ON CONFLICT DO NOTHING" was added with pqsql 9.5. PostgreSQL 9.4 is eol since 2020-02-13 and thus everyone should use a version with upsert support nowadays. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> | ||||
* | Merge branch 'master' into refactor/OC-Server-getSecureRandom | John Molakvoæ | 2024-05-30 | 47 | -1456/+645 |
|\ | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com> | ||||
| * | feat(db): add mapping for lock wait timeout | Daniel Kesselberg | 2024-05-29 | 1 | -0/+4 |
| | | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> | ||||
| * | fix(db): Prevent two connections for single node databases | Christoph Wurst | 2024-05-28 | 1 | -1/+11 |
| | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> | ||||
| * | Merge pull request #39589 from ↵ | Thomas Citharel | 2024-05-27 | 1 | -0/+2 |
| |\ | | | | | | | | | | | | | nextcloud/enh/set-nest-transactions-with-savepoints set Doctrine to use nest transactions with savepoints | ||||
| | * | feat(db): set Doctrine to use nest transactions with savepoints | Thomas Citharel | 2024-02-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using nested transactions without savepoints is actually deprecated by Doctrine: https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/transactions.html#transaction-nesting Without savepoints, a nested transaction can be rollbacked but not handled properly in the "real" transaction, leading to the following error: Transaction commit failed because the transaction has been marked for rollback only. Ref https://github.com/nextcloud/server/pull/36528#issuecomment-1639913965 (and possibly) https://github.com/nextcloud/server/issues/38902#issuecomment-1598075391 Signed-off-by: Thomas Citharel <tcit@tcit.fr> | ||||
| * | | fix(db): Log loong transaction times at debug level | Josh | 2024-05-25 | 1 | -2/+2 |
| | | | | | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com> | ||||
| * | | chore: Add SPDX header | Andy Scherzinger | 2024-05-24 | 45 | -945/+141 |
| | | | | | | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de> |