Skip to content

Tags: rkrx/php-mysql-query-builder

Tags

0.5.4

Toggle 0.5.4's commit message
Implement Mock Database and Update JSON_TABLE syntax in Tests

- Added `MockDatabase` class for in-memory database operations to facilitate testing.
- Created `MockPDOStatement, `MockQueryStatement`, and `MockRunnableSelect` for simulating query executions.
- Updated `JsonTable.php` and related tests to adjust JSON_TABLE syntax with appropriate quoting.
- Updated `tests.php` for environment setup and adjusted PHPUnit bootstrap configuration.
- Included `symfony/dotenv` in `composer.json` to handle environment variables.

0.5.3

Toggle 0.5.3's commit message
Refine type annotations in `RunnableSelect` methods for improved gene…

…rics handling

0.5.2.1

Toggle 0.5.2.1's commit message
Update README with link to temporary tables documentation and add usa…

…ge details

0.5.2

Toggle 0.5.2's commit message
Add support for temporary tables with `RunnableTemporaryTable` interf…

…ace and implementation

- Introduced `RunnableTemporaryTable` interface in `Builder`.
- Implemented `MySQLTemporaryTable` to handle lifecycle and functionality of temporary tables.
- Enhanced `Select` with `temporary()` method to create and manage temporary tables.
- Added comprehensive unit tests for `MockDatabase` to test DQL, DML, DDL stacks, and temporary table functionality.
- Updated `TableNameBuilder` and `MySQLSelect` to integrate new temporary table logic.

0.5.1

Toggle 0.5.1's commit message
Expand AGENTS.md with detailed usage examples for table aliases, mass…

… inserts, field masking, and other advanced insert operations

0.5.0

Toggle 0.5.0's commit message
Add JsonTable and related test

0.4.5

Toggle 0.4.5's commit message
AliasReplacer: Also handle Table additions like `prefix#table_name FO…

…R SYSTEM_TIME ALL`

0.4.4

Toggle 0.4.4's commit message
Refactor type annotations for improved PHPStan compatibility

0.4.3.2

Toggle 0.4.3.2's commit message
Enhanced typing

0.4.3.1

Toggle 0.4.3.1's commit message
Updated typing