Releases: phpnomad/sqlite-integration
Releases · phpnomad/sqlite-integration
v1.0.0
Initial release of phpnomad/sqlite-integration.
PDO+SQLite implementation of phpnomad/db strategies. Intended for desktop and mobile apps that ship SQLite as their production database (NativePHP, embedded scenarios), and as a backing store for fast isolated unit tests.
What's included
PdoDatabaseStrategywith SafeMySQL-style placeholders (?n,?s,?i,?d,?a) and PDO-quoted escapingQueryStrategy,QueryBuilder, andSQLiteClauseBuildercovering SELECT, JOIN (LEFT and RIGHT), GROUP BY, ORDER BY, LIMIT, OFFSET, and the full operator set (includingIS NULL,IN,BETWEEN, and AND/OR groups)TableCreateStrategywith MySQL→SQLite type translation (BIGINT/LONGTEXT/DATETIME/BOOLEANand friends), inlineAUTOINCREMENTforAUTO_INCREMENTattributes, and separateCREATE INDEXstatements for indicesTableUpdateStrategy::syncColumnswith simple ADD/DROP COLUMN for the common case and a transactional create-copy-drop-rename rebuild for affinity changesTableDeleteStrategy,TableExistsStrategywith proper view/index disambiguationDatabaseDateAdaptermatching the MySQL adapter'sY-m-d H:i:sformatConnectionwith foreign keys ON and WAL journaling by defaultDatabasefacade exposingparse(),query(), andlastInsertId()
Testing
161 tests / 234 assertions, all passing on PHP 8.3+ with pdo_sqlite. Coverage includes placeholder semantics, every operator on the clause builder, every public method on the query builder, table lifecycle, schema migration with data preservation, value safety against SQL injection, and full end-to-end scenarios.
Requirements
- PHP 8.3+
pdoandpdo_sqliteextensionsphpnomad/db ^2.0