Repository navigation
feat(sqlite): lazy connection - open file and apply PRAGMAs on first access - #24
Merged
Merged
Conversation
…access SqLite no longer validates the path, opens the file or runs PRAGMAs in the constructor. The first pdo()/connect() does all three inside createPdoConnection(), directly on the fresh handle (no pdo() re-entry), so the PRAGMAs also run after every reconnect(). Path/connection errors surface at the first access. reconnect() keeps an open ':memory:' handle (a new handle would be an empty database). ConnectionFactory docblock corrected: sqlite() is lazy like mysql()/postgres(). Bescheid Rolf 2026-10-15: alle Dienste lazy. Paket-Pendant: PdoConnection (src/Connection/PdoConnection.php:89-93) als Lazy-Vorbild — kein neues Konstrukt außerhalb des Pakets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SqLite opens file and applies PRAGMAs on first access (like PdoConnection); :memory: kept across reconnect(). Bescheid Rolf 2026-10-15: alle Dienste lazy. Zielversion: v1.4.0