Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add SQLiteAdapter::isMemory helper function #2336

Merged
merged 1 commit into from
Dec 14, 2024
Merged

Conversation

MasterOdin
Copy link
Member

PR adds a SQLiteAdapter::isMemory helper function to check if we are using an in-memory database, unifying the three places we check to have same logic.

This does also "fix" a potential warning (as shown in #2335) where if you leave off name and memory, but did provide pdo, you'd get a warning about $options['name'] being empty. Won't hit that anymore, though I think it's still good to encourage people to always use name as it is important for other adapters.

@MasterOdin MasterOdin merged commit 6f0ec12 into 0.x Dec 14, 2024
12 checks passed
@MasterOdin MasterOdin deleted the ref-sqlite-memory branch December 14, 2024 19:15
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant