dlt.destinations.impl.lancedb.sql_client
Query LanceDB using DuckDB SQL client
LanceDB doesn't have an SQL interface. However, using a
DuckDB instance with the lance-duckdb extension allows
to read the .lance files (each maps to a single table).
This SQL client makes LanceDB compatible with the dlt.Dataset
inferface.
get_lance_table_uri
def get_lance_table_uri(lancedb_client: LanceDBClient, table_name: str) -> str
Create a URI for a Lance table
This should be equivalent to
lancedb_client.credentials.get_conn().open_table("foo").to_lance().uri