You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(javascript): return Arrow Table by default in AdbcConnection (#4091)
This PR cleans up the AdbcConnection API so that the common usage is
more ergonomic.
The high-level connection methods now return an Arrow Table by default,
consistent with how most TypeScript database clients behave. Users who
need streaming or fine-grained control can use queryStream() or drop
down to the statement-level API.
AdbcConnection Interface changes
| Method | Before | After |
|--------|--------|-------|
| `query(sql, params?)` | `params?: RecordBatch \| Table` →
`Promise<RecordBatchReader>` | `params?: Table` → `Promise<Table>` |
| `queryStream(sql, params?)` | _(new)_ | `params?: Table` →
`Promise<RecordBatchReader>` |
| `execute(sql, params?)` | `params?: RecordBatch \| Table` →
`Promise<number>` | `params?: Table` → `Promise<number>` |
| `getObjects(options?)` | `Promise<RecordBatchReader>` |
`Promise<Table>` |
| `getTableTypes()` | `Promise<RecordBatchReader>` | `Promise<Table>` |
| `getInfo(infoCodes?)` | `Promise<RecordBatchReader>` |
`Promise<Table>` |
Closes#4090
0 commit comments