Download the PHP package nstwf/mysql-connection without Composer
On this page you can find all versions of the php package nstwf/mysql-connection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nstwf/mysql-connection
More information about nstwf/mysql-connection
Files in nstwf/mysql-connection
Package mysql-connection
Short Description Reactphp MySQL transactional connection wrapper
License MIT
Informations about the package mysql-connection
Reactphp MySQL transactional connection
Simple wrapper of ConnectionInterface
that allows you to make transactions easier
Read main documentation before
Table of contents
- Quickstart example
- Usage
- Factory
- createConnection()
- ConnectionInterface
- query()
- transaction()
- begin()
- commit()
- rollback()
- ping()
- quit()
- close()
- Factory
- Install
- Tests
- License
Quickstart example
Usage
Factory
The main role of factory - creating ConnectionInterface
, by wrapping Factory
createConnection
Create connection using lazy connection for future operations.
ConnectionInterface
That's a wrapper of original ConnectionInterface
.
Currently main difference - wrapper does not support event emitter methods
query
transaction
The transaction(callable $callable): PromiseInterface
method can be used to perform a transaction.
Equals to:
begin
The begin(): PromiseInterface
method can be used to begin the transaction.
Equals to:
Sql case-insensitive
commit
The commit(): PromiseInterface
method can be used to commit the transaction.
Equals to:
sql case-insensitive
rollback
The rollback(): PromiseInterface
method can be used to rollback the transaction.
Equals to:
Sql case-insensitive
ping
close
quit
Install
The recommended way to install this library is through Composer. New to Composer?
This project follows SemVer. This will install the latest supported version:
See also the CHANGELOG for details about version upgrades.
It's highly recommended to use PHP 8+ * for this project.
Tests
To run the test suite, you first need to clone this repo and then install all dependencies through Composer:
To run the test suite, go to the project root and run:
License
MIT, see LICENSE file.
- friends-of-reactphp/mysql - main project