Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support using blocking SQLite adapter when using an empty binary path #48

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

clue
Copy link
Owner

@clue clue commented Nov 11, 2021

This changeset adds support for using a blocking SQLite adapter when using an empty binary path.

Using an empty parameter to pass an empty PHP binary path will now cause this project to not spawn a PHP child process for any database interactions at all. In this case, using SQLite will block the main process, but continues to provide the exact same async API. This can be useful if concurrent execution is not needed, especially when running behind a traditional web server (non-CLI SAPI).

// advanced usage: empty binary path runs blocking SQLite in same process
$factory = new Clue\React\SQLite\Factory(null, '');

Builds on top of #45
Refs #35

@clue clue added the new feature New feature or request label Nov 11, 2021
@clue clue added this to the v1.3.0 milestone Nov 11, 2021
@clue clue requested a review from SimonFrings November 11, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants