Jakub Vrana
88099b7dd7
Code style: Fix
2025-04-08 21:26:08 +02:00
Jakub Vrana
69890ffc48
Driver plugins: Compatibility with compiled version
2025-04-07 07:53:42 +02:00
Jakub Vrana
22dc4ff444
SQLite: Add missing border to Status
2025-04-02 21:12:48 +02:00
Jakub Vrana
177429d59f
Optimize retrieving columns for schema
2025-03-31 21:45:06 +02:00
Jakub Vrana
27c688b902
SQLite: Do not return unrelated auto_increment
2025-03-31 10:42:53 +02:00
Jakub Vrana
41964badb0
SQLite: Fix type of $auto_increment
2025-03-31 10:42:30 +02:00
Jakub Vrana
b50d19629f
PHPStan: Use int for $limit
2025-03-31 10:09:30 +02:00
Jakub Vrana
7ee6f4f7ac
Move connect() to Driver
2025-03-31 10:09:30 +02:00
Jakub Vrana
9b6943d5af
Add helper for $connection2
2025-03-29 22:21:18 +01:00
Jakub Vrana
712d96b22c
Use connection() instead of $connection
2025-03-29 22:10:20 +01:00
Jakub Vrana
168ea5ae6d
Use driver() instead of $driver
2025-03-29 22:05:31 +01:00
Jakub Vrana
aceb4ce7a5
Move $drivers to SqlDriver
2025-03-28 22:58:32 +01:00
Jakub Vrana
1f88485a3c
Rename variable
2025-03-28 22:58:03 +01:00
Jakub Vrana
29339c5223
Db: Unify connection error handling
2025-03-28 22:28:52 +01:00
Jakub Vrana
7a19fa67fd
Integrate Db::result in get_val
2025-03-28 15:41:38 +01:00
Jakub Vrana
195341d075
Split editFunctions
2025-03-28 15:41:38 +01:00
Jakub Vrana
46f6a96c95
Doc-comments: Fix type errors
2025-03-28 15:41:36 +01:00
Jakub Vrana
b948f77af4
Doc-comments: Fix type errors
2025-03-28 12:47:06 +01:00
Jakub Vrana
54f8d731b3
Doc-comments: Sync method signatures
2025-03-28 12:45:02 +01:00
Jakub Vrana
45c045382a
Doc-comments: Move return types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
641ee4ff26
Doc-comments: Move param types to declaration
2025-03-28 12:45:02 +01:00
Jakub Vrana
911f3b71b7
Doc-comments: Add param names
2025-03-28 12:45:02 +01:00
Jakub Vrana
104132de36
Fix errors discovered by tests
2025-03-27 21:05:31 +01:00
Jakub Vrana
b23bf6c055
PHPStan: Fix more errors
2025-03-27 18:39:48 +01:00
Jakub Vrana
e2deed9a02
Use common parent for Db
2025-03-27 18:39:47 +01:00
Jakub Vrana
309fdb0d86
PHPStan: Fix level 3 errors
2025-03-26 16:57:58 +01:00
Jakub Vrana
d39cc24c61
PHPStan: Fix level 1 errors
2025-03-26 13:49:11 +01:00
Jakub Vrana
f75f0aacfe
SQLite: Fix non-PDO driver after 99163fe
2025-03-26 11:39:06 +01:00
Jakub Vrana
41aad5bc37
Doc-comment: Use type aliases for arrays
...
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases ) or just for a class.
I prefer having them at the place where they are created.
2025-03-26 02:43:08 +01:00
Jakub Vrana
cccc784da4
Always return array from table_status()
2025-03-26 01:34:48 +01:00
Jakub Vrana
2ee325183b
Doc-comment: Improve array @param
...
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays .
int[] means an array of ints with arbitrary keys (usually strings)
list<string> means an array of strings with sequential integer keys starting at 0
list<string>[] means an arbitrary array of string lists
list<string[]> means list of arbitrary string arrays
string[][] means two dimensional array with arbitrary keys in both dimensions
array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
2025-03-25 14:31:27 +01:00
Jakub Vrana
50cdbbe415
Non-MySQL: Better field types in SQL command
2025-03-24 14:43:15 +01:00
Jakub Vrana
99163feefb
SQLite PDO: Display results in SQL query
2025-03-24 13:53:11 +01:00
Jakub Vrana
b8eb0ad8f5
Notices: Declare properties in fetch_field()
2025-03-24 12:18:24 +01:00
Jakub Vrana
3dd1b41472
Notices: Store maria into a declared variable
2025-03-24 07:30:22 +01:00
Jakub Vrana
f5ecb18896
Notices: Add helper for reset() with expression
2025-03-23 21:39:25 +01:00
Jakub Vrana
3f2eec9b92
URL parameter ?ext=pdo to force using PDO
2025-03-22 08:18:39 +01:00
Takashi SHIRAI
9f8344e53c
Fix the uncaught exception because of namespace.
...
Signed-off-by: Takashi SHIRAI <shirai@nintendo.co.jp >
2025-03-19 18:35:32 +01:00
Jakub Vrana
3fb6cac361
PostgreSQL: Display description of system variables
2025-03-18 16:00:21 +01:00
Jakub Vrana
a3d1ab34bb
Move engines() to Driver
2025-03-18 13:41:24 +01:00
Jakub Vrana
19313a8dab
Pass $result to last_id
2025-03-17 19:58:21 +01:00
Jakub Vrana
2fdebfda29
Ensure PHP 5.3 compatibility
2025-03-11 21:43:59 +01:00
Jakub Vrana
ae57d42105
SQLite: Fix calling private property
2025-03-11 11:05:10 +01:00
Jakub Vrana
1e963cf90f
Change var to public
2025-03-11 08:17:00 +01:00
Jakub Vrana
c454ea8430
Use protected visibility
2025-03-11 08:16:41 +01:00
Jakub Vrana
607febea8e
Use private visibility
2025-03-11 08:16:39 +01:00
Peter Knut
e883ad428e
Add support for "order" field privilege
...
In Elasticsearch, text fields are not sortable.
2025-03-08 23:12:00 +01:00
Peter Knut
87d87248c1
Add support for "where" field privilege
...
In Elasticsearch, only indexed fields are searchable.
2025-03-08 23:05:16 +01:00
Jakub Vrana
d35c896b92
Add helper function
2025-03-08 06:13:18 +01:00
Jakub Vrana
9918f4155e
Pass credentials to connect()
2025-03-07 12:03:29 +01:00