CirroConnect v0.1.3 CirroConnect View Source

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

Link to this section Summary

Functions

Cancel a query

Handle incorrect close gracefully

Close a named connection

Connect to Cirro

Connect to Cirro and return a pipeable connection

Fetch the connections table

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

Execute a query, returning rows and matadata without status

Return just the rows from a query

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

Fetch the task table

Handle abrupt termination of web socket

Process all monitoring events (example)

Link to this section Functions

Cancel a query

Handle incorrect close gracefully

Close a named connection

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

Connect to Cirro

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

Connect to Cirro and return a pipeable connection

Fetch the connections table

Link to this function exec(query, arg, options \\ %{}) 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(pid, arg, options \\ %{}) View Source

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

Fetch the next fetchsize batch of results

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

Execute a query, returning status, rows and metadata

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

Execute a query, returning rows and matadata without status

Return just the rows from a query

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

Fetch the task table

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

Handle abrupt termination of web socket

Process all monitoring events (example)