File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 11# react-mysql
22Nuclear MySQL Reactor
3+
4+
5+ # Examples
6+
7+ Connection::init($loop);
8+
9+ Connection::query('SELECT * FROM ` table ` WHERE ` column ` = ? AND ` column2 ` = ?;', [ 'red', 'white'] )
10+ ->then(function($result) { ... });
11+
12+ Connection::query returns a promise. This has all of the normal promise interface options.
13+
14+ # Credits
15+ Inspiration from:
16+ - https://github.com/kaja47/async-mysql
17+ - https://github.com/bixuehujin/reactphp-mysql
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit backupGlobals =" false"
3+ backupStaticAttributes =" false"
4+ colors =" true"
5+ convertErrorsToExceptions =" true"
6+ convertNoticesToExceptions =" true"
7+ convertWarningsToExceptions =" true"
8+ processIsolation =" false"
9+ stopOnFailure =" false"
10+ bootstrap =" tests/bootstrap.php" >
11+ <testsuites >
12+ <testsuite name =" ReactMysql Test Suite" >
13+ <directory >./tests/</directory >
14+ </testsuite >
15+ </testsuites >
16+ <filter >
17+ <whitelist >
18+ <directory >./src/</directory >
19+ </whitelist >
20+ </filter >
21+ </phpunit >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ require __DIR__ .'/../vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments