mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Update to new pipeline lib
This commit is contained in:
parent
c17f93fb9a
commit
4f5f3e6d92
@ -8,18 +8,21 @@
|
|||||||
"asynchronous",
|
"asynchronous",
|
||||||
"async"
|
"async"
|
||||||
],
|
],
|
||||||
"homepage": "http://amphp.org",
|
"homepage": "https://amphp.org",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8",
|
"php": ">=8",
|
||||||
"amphp/amp": "^3-dev"
|
"amphp/amp": "^3-dev",
|
||||||
|
"amphp/pipeline": "dev-master"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"amphp/php-cs-fixer-config": "dev-master",
|
"amphp/php-cs-fixer-config": "dev-master",
|
||||||
"amphp/phpunit-util": "^2-dev",
|
"amphp/phpunit-util": "^2-dev",
|
||||||
"phpunit/phpunit": "^9",
|
"phpunit/phpunit": "^9",
|
||||||
"psalm/phar": "^3.11@dev"
|
"psalm/phar": "^4.10"
|
||||||
},
|
},
|
||||||
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true,
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Amp\\Sql\\": "src"
|
"Amp\\Sql\\": "src"
|
||||||
|
@ -59,8 +59,13 @@ abstract class ConnectionConfig
|
|||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct(string $host, int $port, ?string $user = null, ?string $password = null, ?string $database = null)
|
public function __construct(
|
||||||
{
|
string $host,
|
||||||
|
int $port,
|
||||||
|
?string $user = null,
|
||||||
|
?string $password = null,
|
||||||
|
?string $database = null
|
||||||
|
) {
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
$this->port = $port;
|
$this->port = $port;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
@ -95,7 +100,7 @@ abstract class ConnectionConfig
|
|||||||
/**
|
/**
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
final public function getUser() /* : ?string */
|
final public function getUser(): ?string
|
||||||
{
|
{
|
||||||
return $this->user;
|
return $this->user;
|
||||||
}
|
}
|
||||||
@ -110,7 +115,7 @@ abstract class ConnectionConfig
|
|||||||
/**
|
/**
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
final public function getPassword() /* : ?string */
|
final public function getPassword(): ?string
|
||||||
{
|
{
|
||||||
return $this->password;
|
return $this->password;
|
||||||
}
|
}
|
||||||
@ -125,7 +130,7 @@ abstract class ConnectionConfig
|
|||||||
/**
|
/**
|
||||||
* @return string|null
|
* @return string|null
|
||||||
*/
|
*/
|
||||||
final public function getDatabase() /* : ?string */
|
final public function getDatabase(): ?string
|
||||||
{
|
{
|
||||||
return $this->database;
|
return $this->database;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Amp\Sql;
|
namespace Amp\Sql;
|
||||||
|
|
||||||
use Amp\Pipeline;
|
use Amp\Pipeline\Pipeline;
|
||||||
|
|
||||||
interface Result extends Pipeline
|
interface Result extends Pipeline
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user