Skip to content

Support PHP 8.1 and minor clean up #49

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

Merged
merged 2 commits into from
Nov 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- ubuntu-20.04
- windows-2019
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It offers a common SQL interface to process queries to work with its relational
in memory or persist to a simple, portable database file.
Its lightweight design makes it an ideal candidate for an embedded database in
portable (CLI) applications, test environments and much more.
This library provides you a simple API to work with your SQLite database from within PHP.
This library provides a simple API to work with your SQLite database from within PHP.
Because working with SQLite and the underlying filesystem is inherently blocking,
this project is built as a lightweight non-blocking process wrapper around it,
so you can query your data without blocking your main application.
Expand Down Expand Up @@ -135,7 +135,7 @@ success or will reject with an `Exception` on error. The SQLite extension
is inherently blocking, so this method will spawn an SQLite worker process
to run all SQLite commands and queries in a separate process without
blocking the main process. On Windows, it uses a temporary network socket
for this communication, on all other platforms it communicates over
for this communication, on all other platforms, it communicates over
standard process I/O pipes.

```php
Expand Down Expand Up @@ -218,7 +218,7 @@ will not have to wait for an actual underlying connection.

Depending on your particular use case, you may prefer this method or the
underlying `open()` method which resolves with a promise. For many
simple use cases it may be easier to create a lazy connection.
simple use cases, it may be easier to create a lazy connection.

The `$filename` parameter is the path to the SQLite database file or
`:memory:` to create a temporary in-memory database. As of PHP 7.0.10, an
Expand Down Expand Up @@ -254,7 +254,7 @@ $db = $factory->openLazy('users.db', null, ['idle' => 0.1]);
### DatabaseInterface

The `DatabaseInterface` represents a connection that is responsible for
comunicating with your SQLite database wrapper, managing the connection state
communicating with your SQLite database wrapper, managing the connection state
and sending your database queries.

#### exec()
Expand Down Expand Up @@ -435,14 +435,14 @@ This project follows [SemVer](https://semver.org/).
This will install the latest supported version:

```bash
$ composer require clue/reactphp-sqlite:^1.1
$ composer require clue/reactphp-sqlite:^1.2
```

See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

This project aims to run on any platform and thus only requires `ext-sqlite3` and
supports running on legacy PHP 5.4 through current PHP 8+.
It's *highly recommended to use PHP 7+* for this project.
It's *highly recommended to use the latest supported PHP version* for this project.

This project is implemented as a lightweight process wrapper around the `ext-sqlite3`
PHP extension, so you'll have to make sure that you have a suitable version
Expand Down
4 changes: 2 additions & 2 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(LoopInterface $loop = null, $binary = null)
* is inherently blocking, so this method will spawn an SQLite worker process
* to run all SQLite commands and queries in a separate process without
* blocking the main process. On Windows, it uses a temporary network socket
* for this communication, on all other platforms it communicates over
* for this communication, on all other platforms, it communicates over
* standard process I/O pipes.
*
* ```php
Expand Down Expand Up @@ -181,7 +181,7 @@ public function open($filename, $flags = null)
*
* Depending on your particular use case, you may prefer this method or the
* underlying `open()` method which resolves with a promise. For many
* simple use cases it may be easier to create a lazy connection.
* simple use cases, it may be easier to create a lazy connection.
*
* The `$filename` parameter is the path to the SQLite database file or
* `:memory:` to create a temporary in-memory database. As of PHP 7.0.10, an
Expand Down