adbc.read_cursor

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

Syntax

Parameters

ParameterTypeDescription
cursoradbc_driver_manager.dbapi.Cursor

An ADBC DB-API cursor. Prior to it being passed in, its execute method must be called to run a query operation that produces an Arrow table.

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.