CirroConnect v0.1.7 CirroConnect View Source

Cirro WebSocket-based SQL connector - Copyright Cirro Inc, 2018

Link to this section Summary

Functions

Wait for results (default)

Cancel a query

Handle incorrect close gracefully

Close a named connection

Connect to Cirro and return a pipeable connection

Fetch the connections table

Dump a message (example)

Execute a rowless SQL statement

Are we connected?

Convert a query’s output to a List of Maps of column => value

Forward monitoring events to the given process - options can contain restrictions for session_id and event_type

Fetch the next fetchsize batch of results

Execute a query, returning status, rows and metadata

Return just the rows from a query

Skip any remaining rows of a query

Convert a query’s output to a list of lists, where the first row contains the column names

Fetch the task table

Handletermination of web socket

Link to this section Functions

Link to this function await_results(timeout \\ 60000) View Source

Wait for results (default)

Cancel a query

Handle incorrect close gracefully

Close a named connection

Link to this function connect(url, user, password, options \\ []) View Source

Connect to Cirro

Link to this function connect!(url, user, password) View Source

Connect to Cirro and return a pipeable connection

Link to this function connections(arg, recipient \\ nil) View Source

Fetch the connections table

Dump a message (example)

Link to this function exec(query, arg, options \\ %{}, recipient \\ nil) View Source

Execute a rowless SQL statement

Are we connected?

Convert a query’s output to a List of Maps of column => value

Link to this function monitor(arg, options \\ %{}, recipient \\ nil) View Source

Forward monitoring events to the given process - options can contain restrictions for session_id and event_type

Link to this function next(arg, id, recipient \\ nil) View Source

Fetch the next fetchsize batch of results

Link to this function query(query, arg, options \\ %{}, recipient \\ nil) View Source

Execute a query, returning status, rows and metadata

Return just the rows from a query

Link to this function skip(arg, id, recipient \\ nil) View Source

Skip any remaining rows of a query

Convert a query’s output to a list of lists, where the first row contains the column names

Link to this function tasks(arg, recipient \\ nil) View Source

Fetch the task table

Link to this function terminate(reason, state) View Source

Handletermination of web socket