jylis_ex v0.2.0 Jylis
Jylis database adapter.
Link to this section Summary
Link to this section Functions
Link to this function
query(connection, command)
Make a query to the database.
command
- A List
of command parameters. The command follows the format
specified for a function in the Jylis data types
documentation.
Returns {:ok, result}
on success.
Link to this function
start_link(server_uri)
Start a connection to Jylis.
server_uri
- A URI in the format jylis://host:port
. The schema must
be jylis
. The host
can be a valid hostname, IP address, or domain name.
The port
is optional and defaults to 6379
.
Returns {:ok, pid}
on success, or {:error, error}
on failure.
Link to this function
stop(connection, timeout \\ :infinity)
Close a connection to Jylis.
timeout
- Timeout in milliseconds.