k-alin
470be2b5e4
Update src/Database/Database.php
...
Correct indent
Co-authored-by: Philipp <admin+Github@philipp.info>
2022-02-25 12:09:30 +01:00
k-alin
335be6f032
Update src/Database/Database.php
...
Correct indent
Co-authored-by: Philipp <admin+Github@philipp.info>
2022-02-25 12:09:12 +01:00
k-alin
ff439272b9
mysql connection via socket if location of mysqld.sock was specified
2022-02-20 17:45:51 +01:00
k-alin
31ff583c5e
mysql connection via unix sockets (mysqli + PDO)
2022-02-14 23:18:41 +01:00
Michael
14f0a1a1ed
Don't throw an exception when the database query fails
2022-02-08 21:28:42 +00:00
Michael
a46b21590d
use "ANY_VALUE" instead of "MAX"
2022-01-18 06:59:02 +00:00
Michael
615c6ca696
Issue 10935: Improved "GROUP BY" handling
2022-01-18 06:35:18 +00:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
516018861e
Merge remote-tracking branch 'upstream/develop' into error-handling
2021-10-31 05:25:39 +00:00
Michael
4236a9a105
Improved http error handling
2021-10-29 23:21:07 +00:00
Philipp
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
Philipp
ab83d0dd27
Restructure (P)Config to follow new paradigm
2021-10-26 22:11:06 +02:00
Hypolite Petovan
24734b05fe
Cast object parameters to string in Database\Database
...
- This makes string casting in Depository->save unnecessary
2021-10-03 15:35:47 -04:00
Michael Vogel
3d97149007
Merge pull request #10722 from MrPetovan/task/refactor-notifications
...
Move notify, notifications and introduction notifications to new paradigm
2021-10-03 14:13:28 +02:00
Michael
9961943b73
Code Style: Replace "AS" with "as"
2021-10-03 10:34:41 +00:00
Hypolite Petovan
dae5703e5c
Improve accuracy of accepted parameter types in phpDoc of Database->fetch
...
- Suppresses an unwarranted type error raised by static analyzers
2021-10-02 18:15:43 -04:00
Philipp
c00da77c67
Add feedback
2021-09-18 12:55:17 +02:00
Philipp
6893e2c3f7
Add feedback / revert fix for $item['post-type']
2021-09-18 12:51:09 +02:00
Philipp
462f76352e
Add feedback :-)
2021-09-18 12:51:09 +02:00
Philipp
89a085a12c
Check DBA::count() result
2021-09-18 12:51:08 +02:00
Hypolite Petovan
7ee88c3457
Improve documentation of $old_fields possible values in DBA::update and Database->update
2021-09-05 14:54:50 -04:00
Michael
c89533a70b
Support for stacked profiler analysis
2021-07-27 04:57:29 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Michael
99a145f7cf
Fixes several database errors, removes "relation" handling
2021-02-25 05:13:49 +00:00
Michael
10f7280bbc
Fetch a given number of posts
2021-02-21 07:46:58 +00:00
Michael
8f27715d8b
"item" is replaced whenever possible at the moment
2021-02-06 13:42:21 +00:00
Michael
4157db5473
"item" is replaced by "post-view" / postupdate check added
2021-01-17 20:32:13 +00:00
Michael
d755bbae8f
Remove unneeded configutation
2020-12-20 08:56:32 +00:00
Hypolite Petovan
99b200868b
Normalize return value in Database->fetch
...
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-741857058
2020-12-10 06:12:10 -05:00
Michael
bd9f36622e
Cast field data when ATTR_EMULATE_PREPARES is enabled
2020-11-27 11:24:31 +00:00
Michael
303aaa00ca
Mode switch for insert
2020-11-19 19:34:48 +00:00
Michael
eb8caaa5e7
Restore the connection check
2020-11-07 11:44:39 +00:00
Michael
8906615b2c
Test if PDO doesn't work on the tests
2020-11-07 10:27:22 +00:00
Michael
84924d1c05
Test the tes
2020-11-07 10:12:31 +00:00
Michael
d6a1a836f1
Simplified connection test
2020-11-07 09:58:20 +00:00
Michael
3a5cdecb62
New function to fetch the database driver
2020-11-07 09:02:02 +00:00
Michael
f405336680
Avoid duplicate item entries
2020-10-23 19:10:17 +00:00
Philipp
d55ecb9288
Fix a lot of notices/warnings/deprecation notes in the test directory
2020-10-18 20:52:27 +02:00
Philipp
2a464a156f
Update src/Database/Database.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-06 20:55:36 +02:00
Philipp
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
...
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp
3587e89482
Introduce a "DatabaseException" class for fatal exceptions (used in testmode to throw an exception in case of DB errors)
2020-10-06 20:03:38 +02:00
Michael
44ee4a54b4
Replace "insert" with "replace"
2020-08-27 21:35:08 +00:00
Michael
dfea3ee3d6
Configuration if the database is opened with persistent connections
2020-08-27 10:59:14 +00:00
Michael Vogel
e715458005
Update src/Database/Database.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-08-26 22:45:00 +02:00
Michael
212e06b87b
Added support for the "replace" database command
2020-08-26 20:16:57 +00:00
Philipp
16591077ac
Fix Database $_SERVER usage and remove old .travis files
2020-08-19 14:20:07 +02:00
Hypolite Petovan
afb882048e
Generate callstack value from inside Profiler::saveTimestamp
...
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Michael Vogel
9f1d1db1ee
Database performance updates
2020-07-18 17:49:10 +02:00
Hypolite Petovan
d5acd5f96a
Add expected support for sort strings in select() parameters
...
- Fix unexpected behaviors with calls already using the sort strings
2020-07-01 22:54:14 -04:00
Hypolite Petovan
5cf5869b04
Add type hint to Database::insert
...
- Will escalate warning to fatal error in https://github.com/friendica/friendica/issues/8474#issuecomment-646802016
2020-06-24 09:36:34 -04:00