[READ-ONLY] Flexible and powerful Database abstraction library with a familiar PDO-like API. This r…

Repo Url https://github.com/cakephp/database
Clone Url:
Watchers 11
Issues 0
Forks 2
Last Pushed At 2016-04-11
Tags has:composer has:license has:readme keyword:abstraction keyword:database keyword:pdo license:mit version:4.x
Last fetched: on 1/3/20

Recent Activity

Date Commit Message
2023-05-23 Fix creating fixture tables in postgres schemas When creating fixture tables we should generate tables into the configured database schema instead of `public` Fixes cakephp/cakephp#863
2023-04-23 Catch all exceptions when generating sql for Query::__debugInfo()
2023-04-23 Fix DateTimeType::manyToPHP with int
2023-04-08 Fix compatibility issues with Chronos 2.next * Add a more specific and limited marshal() method for DateType. I don't love the fallback to DateTimeImmutable as it doesn't honor the Date contract. If we wanted to keep that we could have cakephp/database depend on chronos as well. * Upgrade chronos to a dev dependency on 2.next. We'll need to change this once we have an beta/RC made for chronos. * Update internal usage of deprecated methods.
2023-04-08 phpcs fixes
2023-04-08 Include documentation about being able to use 'IS' notation for both null and non-null types
2023-04-08 Consolidate code fencing in exception messages. (#16956) Consolidate code fencing in exception messages.
2023-04-08 Fix up TypeError cases found by PHPStan level 8 (#16951) * Fix up TypeError cases found by PHPStan level 8 * Fix up TypeError cases found by PHPStan level 8 * Fix erorrs found by phpstan level 8 Co-authored-by: ADmad
2023-04-08 Fix up TypeError cases found by PHPStan level 8
2023-04-08 Fix up TypeError cases found by PHPStan level 8
2023-04-08 Fix up TypeError cases found by PHPStan level 7/8
2023-04-08 Fix phpcs/phpstan errors. Update composer.json to have a <9 value as we'll totally need to make a new release at some point.
2023-04-08 Fix up TypeError cases found by PHPStan level 7/8
2023-04-08 Merge branch '4.x' into 4.next
2023-04-08 Disallow strings in limit() and offset() Back in 68a08a2 int casts were removed in limit() and offset(). This opened up the possibility for applications to provide unsafe user input into these methods and create an injection vector. We've been trying to narrow the accepted types, so instead of adding casting I've added an exception when strings that are not number shaped are provided.
2023-04-08 Merge branch '4.next' into 5.x
2023-04-08 Fix more phpstan errors.
2023-04-08 Change return type for TypeInterface::toStatement(). Earlier the return was mixed to potentially allow non PDO driver implementations but since DriverInterface is dropped in 5.x we will only have PDO based drivers.
2023-04-08 Add runtime deprecations for class aliases We added many class rename deprecations during 4.x but didn't include runtime deprecations for them. Adding runtime deprecations in 4.5 will encourage developers to update their code before the breaking change in 5.0 Refs cakephp/docs#7561
2023-04-08 Merge branch '4.x' into 4.next
2023-04-08 fix docblock
2023-03-24 Add optional support for wrapping PDOException with DatabaseException
2023-03-24 Fix static analysis errors and add a test case
2023-03-24 Rename setting to Error.convertStatementToDatabaseException
2023-03-24 Added message to the deprecation warning
2023-03-24 Update PHPStan