appel / sqlite-functions
A polyfill for various SQL functions that SQLite doesn't natively support.
v0.1.2
2021-02-03 20:45 UTC
Requires
- php: >=7.1
- ext-pdo: *
- illuminate/database: ^6.20.14 || ^7.30.4 || ^8.24.0
- illuminate/support: ^6.20.14 || ^7.30.4 || ^8.24.0
This package is auto-updated.
Last update: 2024-10-29 05:59:21 UTC
README
This is a little PHP package that adds common SQL functions to SQLite. Useful when you're using MySQL or Postgres as your main database connection, but you want to use SQLite for testing, and keep getting those annoying "No such function" errors for stuff like DATE_FORMAT
.
It still needs a lot of work, so all PRs are welcome.
Installation
composer require --dev appel/sqlite-functions
If you're using Laravel, the service provider and function macros will be registered automatically for you.