odbc.read_cursor

deephaven.dbc.odbc.read_cursor converts the results of a provided cursor into a Deephaven table.

Syntax

Parameters

ParameterTypeDescription
cursorturbodbc.cursor.Cursor

A Turbodbc cursor. Prior to it being passed in, its execute method must be called to run a query operation that produces a result set.

Returns

A new in-memory table.

Examples

The following example executes a SQL query on a Postgres DB and converts the result into a Deephaven table.