clue / reactphp-sqlite

Async SQLite database, lightweight non-blocking process wrapper around file-based database extension (ext-sqlite3), built on top of ReactPHP.
https://clue.engineering/2019/introducing-reactphp-sqlite
MIT License
51 stars 10 forks source link

Simplify usage by supporting new default loop #39

Closed clue closed 3 years ago

clue commented 3 years ago

This changeset simplifies usage by supporting the new default loop.

// old (still supported)
$factory = new Clue\React\SQLite\Factory($loop);

// new (using default loop)
$factory = new Clue\React\SQLite\Factory();

Builds on top of https://github.com/reactphp/event-loop/pull/226, https://github.com/reactphp/event-loop/pull/229 and https://github.com/reactphp/event-loop/pull/232