seanjohnson08 / mysqlite
Polyfills for SQLite to make it as compatible with MySQL queries as possible.
dev-main
2026-01-19 01:11 UTC
Requires (Dev)
- phpunit/phpunit: ^11.5
- rector/rector: ^2.2
This package is auto-updated.
Last update: 2026-03-19 01:31:45 UTC
README
MySQLite is a library of polyfills for the built-in SQLite driver to make it as compatible with MySQL queries as possible.
Installation
composer require seanjohnson08/mysqlite
Usage
$pdo = new PDO('sqlite::memory:'); // Installs polyfilled behavior to SQLite to support MySQL builtins MySQLite::install($pdo); // Execute MySQL as normal $pdo->query('SELECT MONTH(`dateField`) FROM my_table');
Testing
run composer test