1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 17:04:04 +00:00
Commit graph

9 commits

Author SHA1 Message Date
lukinovec
75b74f2e6c Make validateParameter have void return type 2026-04-30 09:28:48 +02:00
lukinovec
0fdb8b2041 Validate user passwords in DB managers
Also, make the validateParameter method ignore null parameters, e.g. for cases when tenants are created using Tenant::make() without tenancy_db_username set -- $databaseConfig->getUsername() allows null, same should go for the validate method whose only concern is checking strings for invalid characters.
2026-04-29 17:35:11 +02:00
github-actions[bot]
182f3a2eb2 Fix code style (php-cs-fixer) 2026-04-29 12:16:22 +00:00
lukinovec
bdf592c0ff Add parameter validation to DB managers
DB manager methods validate the parameters they use in SQL statements using validateParameter() (excluding parameters passed via bindings in SELECT statements).
2026-04-29 14:13:56 +02:00
lukinovec
ad7d229daf Use parameter binding in SELECT queries 2026-04-29 10:21:47 +02:00
lukinovec
808f52765c Use select() instead of selectOne() in databaseExists() and userExists()
This is just for consistency, since all the other DB managers use select().
2026-04-29 10:08:45 +02:00
f955b38e2b phpstan fixes 2025-01-05 15:50:30 +01:00
0fc105487b Tenant DB manager database() -> connection() 2024-09-12 18:34:45 +02:00
Samuel Štancl
7317d2638a
Postgres RLS + permission controlled database managers (#33)
This PR adds Postgres RLS (trait manager + table manager approach) and permission controlled managers for PostgreSQL.

---------

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-04-24 22:32:49 +02:00