seanjohnson08 / mysqlite
Polyfills for SQLite to make it as compatible with MySQL queries as possible.
Installs: 579
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/seanjohnson08/mysqlite
Requires (Dev)
- phpunit/phpunit: ^11.5
- rector/rector: ^2.2
This package is auto-updated.
Last update: 2025-12-06 02:05:17 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