메소드 |
설명 |
|
__construct ( string $host, integer $port = 8086, string $username = '', string $password = '', boolean $ssl = false, boolean $verifySSL = false, integer $timeout ) |
|
|
fromDSN ( string $dsn, integer $timeout, boolean $verifySSL = false ) : Client | Database |
Build the client from a dsn
Examples: |
|
getBaseURI ( ) : mixed |
|
|
getDriver ( ) : InfluxDB\Driver\DriverInterface | InfluxDB\Driver\QueryDriverInterface |
|
|
getHost ( ) : string |
|
|
getLastQuery ( ) : null | string |
Returns the last executed query |
|
getTimeout ( ) : float |
|
|
listDatabases ( ) |
List all the databases |
|
listUsers ( ) : array |
List all the users |
|
query ( string $database, string $query, array $parameters = [] ) : influxdb\ResultSet |
Query influxDB |
|
selectDB ( string $name ) : Database |
Use the given database |
|
setDriver ( InfluxDB\Driver\DriverInterface $driver ) |
|
|
write ( array $parameters, string | array $payload ) : boolean |
Write data |
|