EdgeDbHttpClient
in package
An unofficial EdgeDB PHP client using EdgeDB HTTP protocol.
See https://www.edgedb.com/docs/clients/90_edgeql/index for more informations about how to activate it on your EdgeDB instance.
Table of Contents
- $client : Client
- Guzzle client.
- $database : string
- EdgeDB database name.
- $debug : bool
- Indicates whether or not the client should display debug infos.
- $hostname : string
- EdgeDB hostname (or IP).
- $port : int
- EdgeDB port.
- __construct() : mixed
- Creates an EdgeDB PHP client instance.
- query() : EdgeDbHttpResponse
- Send an HTTP query against an EdgeDB server instance.
Properties
$client
Guzzle client.
private
Client
$client
$database
EdgeDB database name.
private
string
$database
$debug
Indicates whether or not the client should display debug infos.
private
bool
$debug
$hostname
EdgeDB hostname (or IP).
private
string
$hostname
$port
EdgeDB port.
private
int
$port
Methods
__construct()
Creates an EdgeDB PHP client instance.
public
__construct([string $hostname = '127.0.0.1' ][, int $port = 10700 ][, string $database = 'edgedb' ][, bool $debug = false ]) : mixed
Parameters
- $hostname : string = '127.0.0.1'
- $port : int = 10700
- $database : string = 'edgedb'
- $debug : bool = false
Return values
mixed —query()
Send an HTTP query against an EdgeDB server instance.
public
query(EdgeQlQuery $query) : EdgeDbHttpResponse
Parameters
- $query : EdgeQlQuery