Roland Häder
0332a57bfd
Rewrote to suggestions from @MrPetovan (I tried to maintain the old way of
...
['scheme' => 'table'] with my version).
2022-06-21 18:13:01 +02:00
Roland Häder
1080a840f5
Changes:
...
- Database->$driver can no longer be NULL, an empty string is fine anyway
2022-06-21 13:47:39 +02:00
Roland Häder
945cd1a2c2
Fixed:
...
- since $table can be now schema.table, this needs being taken care off
- maybe this foreach(explode()) is a bit an overkill as only 1 or 2 entries
can be found in it
2022-06-21 13:47:39 +02:00
Roland Häder
0d81a08e3c
WIP: Properly some fixes? Also why is DROP VIEW IF EXISTS is being killed?
2022-06-21 13:47:39 +02:00
Roland Häder
44a9ec9b17
Rewrite:
...
- avoid having array|string for $table to have a "string" type-hint for $table
- you now have to do it for yourself by giving 'schema.table' as parameter
2022-06-21 13:47:38 +02:00
Roland Häder
cefffde691
Changes:
...
- added type-hints
- added some missing documentation
2022-06-21 13:47:37 +02:00
Roland Häder
6743de63f5
Changed:
...
- DBA::exists() should only be used for checking if records exists.
- if you want to check if a table exists, please ALWAYS use
DBStructure::existsTable() instead
2022-06-20 08:20:07 +02:00
Roland Häder
9c80dd35e5
Both declarations must be the same
2022-06-20 08:07:12 +02:00
Roland Häder
cd3b01fd82
Changed:
...
- cannot have type-hints :-(
2022-06-20 03:48:34 +02:00
Roland Häder
ec96f2252e
Changes:
...
- added type-hints
- added some missing documentation
2022-06-20 03:10:23 +02:00
Roland Häder
33768ea1c6
Some fixes:
...
- $gsid's default value cannot sadly be 0, it now must be null to allow some
code work
- added some more type-hints
- documented a bit more
2022-06-17 17:18:31 +02:00
Roland Häder
4e53666c70
Added more type-hints
2022-06-17 17:18:31 +02:00
Michael
e46354a522
New command to merge duplicated contacts
2022-06-01 22:11:03 +00:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
9961943b73
Code Style: Replace "AS" with "as"
2021-10-03 10:34:41 +00: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
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
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
3a5cdecb62
New function to fetch the database driver
2020-11-07 09:02:02 +00:00
Michael
90315e3434
Don't perform actions on empty conditions
2020-09-07 05:00:17 +00:00
Michael
4852458645
Simplify the code / check number of parameters in mergeConditions
2020-09-06 20:28:08 +00:00
Michael Vogel
bc98f86afe
Update src/Database/DBA.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-08-26 22:44:51 +02:00
Michael
212e06b87b
Added support for the "replace" database command
2020-08-26 20:16:57 +00:00
Hypolite Petovan
24a82110fd
Add common relationship methods to Model\ContactRelation
...
- Introduce DBA::mergeConditions method
- Replace GContact relationship method contents with Model\ContactRelation method calls
2020-08-03 13:34:10 -04: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
Michael
6487daa4a9
Issue 8550: Check for a good table_definition cache value
2020-04-29 06:28:06 +00:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes
2020-02-09 15:45:36 +01:00
Michael
0a4119adaf
@brief is removed completely
2020-01-19 06:05:23 +00:00
Michael
fd1f1999f0
Remove @brief in DBA.php
2020-01-18 20:33:20 +00:00
Hypolite Petovan
ef6e9ef26b
Add DBA::collapseCondition method
...
- Update Database->update for use with DBA::collapseCondition
2020-01-06 20:48:26 -05:00
nupplaPhil
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
Hypolite Petovan
9c9e07dbab
Add support for empty values array in Database\DBA
2019-12-24 16:21:00 -05:00
Hypolite Petovan
fd5b2d6af2
Fix wrong type-hints for table parameter in Database->selectToArray and DBA::selectToArray
2019-12-16 08:49:01 -05:00
Michael
8237d35a87
Restructured "manage" functionality, added count parameters
2019-09-17 04:05:26 +00:00
Hypolite Petovan
0e0fff3324
Correctly escape identifier names
...
- Add support for schema, multiple tables in $table parameters
- Remove Database->formatTableName method
2019-07-29 00:23:40 -04:00
Philipp Holzer
51d2db3998
merge DBA::selectToArray
2019-07-27 23:57:38 +02:00
Philipp Holzer
6c2cf494b5
Remove DependencyFactory
...
- Include all necessary classes in `dependencies.config.php`
- Add DI-reference to BaseObject (acts as a global registry)
- Refactor all static "init()" methods to use the global registry
- Refactor Logging for Worker-Logger a little bit
2019-07-27 23:54:12 +02:00
Michael
5d9472dccf
Type hints
2019-07-27 17:00:06 +00:00
Michael
555c444b4e
Moved function to Database.php
2019-07-27 16:08:48 +00:00
Michael
2be0ceac6b
Added "selectToArray" functions in DBA and Item
2019-07-27 14:33:17 +00:00
Philipp Holzer
082634adbc
Moving from DBA to Database
2019-06-24 09:36:07 +02:00
Hypolite Petovan
af9ce6b92a
Add type-hint for dynamic variables in DBA
2019-06-13 19:07:04 -04:00
Michael
30143aa5b1
Identifier have to be escaped different than values
2019-05-21 05:34:41 +00:00
Michael
1f6f588872
Fix table name sanitation / enable table schemes
2019-05-20 20:38:18 +00:00
Philipp Holzer
419cc81ef1
renaming
2019-05-19 05:13:06 +02:00