kentkwu opened a new pull request, #4091:
URL: https://github.com/apache/arrow-adbc/pull/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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to