aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/ConnectionFactory.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #44470 from nextcloud/fix/compatibility-replica-splittingBenjamin Gaussorgues2024-03-261-1/+1
|\
| * fix: Allow using replica config with split databasesJulius Härtl2024-03-261-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix(DB): Sanitize `host` parameter for postgres databases when IPv6 address ↵Ferdinand Thiessen2024-03-251-0/+9
|/ | | | | | | | | is passed Doctrine is using `pg_connect` with the `host` parameter, this does not allow IPv6 addresses in URI notation. So we need to extract the IP address and pass it directly Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* enh: Implement PrimaryReadReplicaConnectionJulius Härtl2023-12-161-9/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Change option name again to be more like the other optionsRetidurc Silvernight2022-09-231-1/+1
| | | | Signed-off-by: Retidurc Silvernight <retidurc@silvernight.social>
* Change config option to db.persistentRetidurc Silvernight2022-09-231-1/+1
| | | | Signed-off-by: Retidurc Silvernight <retidurc@silvernight.social>
* Expose Doctrine settings in Netxcloud settingsRetidurc Silvernight2022-09-231-0/+4
| | | | Signed-off-by: Retidurc Silvernight <retidurc@silvernight.social>
* Allow specify a config prefix for another database connectionJoas Schilling2022-02-031-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Attempt to fix CIacsfer2021-12-071-1/+0
|
* make it possible to override the default collationArthur Schiwon2021-09-011-0/+4
| | | | | | - allows admins to configure it for edge cases like accent sensitivity Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add event subscriber for transaction isolation levelDaniel Kesselberg2020-02-211-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use const for dbname and dbtableprefix defaultsDaniel Kesselberg2018-09-231-2/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Move regex to a function and add testsJoas Schilling2018-04-191-11/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow IPv6 database hostsJoas Schilling2018-04-181-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class statement instead of stringMorris Jobke2018-01-291-8/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add postgresql10 compatibility to dbalRobin Appelman2017-11-221-3/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix bigint handling on postgresJoas Schilling2017-09-291-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use the same oci connectstring in all code pathsRobin Appelman2017-04-101-23/+35
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes Add config option to update charset of mysql to utf8mb4 * fully optional * requires additional options set in the database only disable unicode test on mysql Fixing ctor call Adding docker based unit test execution for mysql utf8mb4 Add mysqlmb4 test configuration to Jenkinsfile fix collation on utf8mb4 Properly setup charset and collation in the doctrine connection Allow files containing 4-byte chars in case the database supports it During setup of a mysql database we try to detect if charset 'utf8mb4' can be used Fix mysql settings Add console command to migrate the charset Set ROW_FORMAT before setting collation to mb4 Also select tables with wrong collation Faster MySQL docker Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-14/+22
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-191-24/+24
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Correctly save and pass on the charsetJoas Schilling2016-10-191-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fixing ctor callThomas Müller2016-10-191-3/+3
|
* Add config option to update charset of mysql to utf8mb4Morris Jobke2016-10-191-0/+7
| | | | | * fully optional * requires additional options set in the database
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* map oracle driver options to params (#23938)Jörn Friedrich Dreyer2016-06-101-0/+4
|
* Move \OC\DB to PSR-4Roeland Jago Douma2016-04-151-0/+184
Besides the statement wrapper that is moved to the legacy folder (namepsace of shame folder)