singlestore-labs / singlestoredb-python

Python SDK for the SingleStore database and workspace management APIs
Apache License 2.0
22 stars 15 forks source link

Add result types: numpy, pandas, polars, arrow #25

Closed kesmit13 closed 6 months ago

kesmit13 commented 6 months ago

New result types have been added to include the following:

The data in each connection is still tuples, but the fetch* methods convert the tuples to the requested data format. This does mean that these formats will be slower than tuples since they require an extra conversion step, but if your application is already doing this step it at least gives you a way to get these output types without writing your own conversion code. At some point in the future, we will look into optimizing these formats to not need the extra conversion step.