CirroConnect v0.1.0 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

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

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

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