port remote connection client into lancedb (#194)

* to_df() is now async, added `to_df_blocking` to convenience
* add remote lancedb client to public lancedb
* make lancedb connection class understand url scheme
`lancedb+<connection_type>://<host>:<port>`.
This commit is contained in:
Rob Meng
2023-06-15 18:57:52 -04:00
committed by GitHub
parent 78de8f5782
commit cbb56e25ab
12 changed files with 412 additions and 8 deletions

View File

@@ -19,10 +19,13 @@ import pyarrow as pa
import pytest
from lancedb.query import LanceQueryBuilder
from lancedb.db import LanceDBConnection
class MockTable:
def __init__(self, tmp_path):
self.uri = tmp_path
self._conn = LanceDBConnection("/tmp/lance/")
def to_lance(self):
return lance.dataset(self.uri)