## Summary Adopts the product terminology guide across the docs site pages, SDK docstrings and error messages. "LanceDB OSS" and local mode become **LanceDB Embedded**. "Remote" as the execution model becomes **LanceDB Distributed**, which LanceDB Enterprise provides. Where free vs paid is the point, pages contrast "LanceDB Embedded (open source)" with "LanceDB Enterprise". This is a first trial of the Embedded name, so reviewers can judge it in context. - **Embedded vs Distributed** for where execution runs (`optimize()`, consistency, branching, maintenance). Main pages define it once: "LanceDB Enterprise runs LanceDB Distributed: …" - **LanceDB Cloud** is kept only for legacy-Cloud specifics (`db://` region, the brute-force KNN limit) and marked legacy. "Cloud and Enterprise" becomes Enterprise or Distributed. - **Plan executor** becomes "executor" or the fleet name. - **Error messages** change, e.g. `optimize is not supported for remote tables.` → `... in LanceDB Distributed.` Tests that match on them are updated. - **Vale rules** (`EmbeddedName`, `OSSProduct`, `RemoteExecution`, `DistributedEnterprise`, `LegacyCloud`, `InternalNames`) enforce the terms in prose. Unchanged: identifiers (`availability.oss`, the `remote` module and feature, `RemoteTable`, `db://`), heading anchors, internal code comments, and Geneva. ## Evidence - Rust lib tests for the changed messages and the Python tests in `test_remote_db.py`, `test_materialized_views.py` and `test_table.py` pass locally. - Not run locally: - The Node tests: `remote.test.ts` and `table.test.ts` have updated assertions. - Vale. - The `experimental_functions`-marked materialized-view tests. - `docs/src` API reference was hand-edited to match the docstrings rather than regenerated. ## Merge Risk **Door:** two-way; prose and message text only. **Blast Radius:** `docs`, `error-messages`: callers matching on old error strings would break. Companion PRs: lancedb/docs (assembler labels, STYLE.md) and sophon (Enterprise pages). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
3.2 KiB
@lancedb/lancedb • Docs
@lancedb/lancedb / connectNamespace
Function: connectNamespace()
connectNamespace(implName, config, options)
function connectNamespace(
implName,
config,
options?): Promise<Connection>
Connect to a LanceDB database through a namespace.
Unlike connect, which routes by URI scheme (local path vs.
db://), connectNamespace always returns a namespace-backed
connection. The implName selects the namespace implementation:
"dir"— directory namespace, configured with DirNamespaceConfig."rest"— remote REST catalog, configured with RestNamespaceConfig.- Any other string — full module path for a custom implementation,
configured with a free-form string-keyed
propertiesmap.
Parameters
-
implName:
"dir" -
config:
DirNamespaceConfig -
options?:
Partial<ConnectNamespaceOptions>
Returns
Promise<Connection>
Examples
const db = await connectNamespace("dir", { root: "/path/to/db" });
await db.createTable("users", [{ id: 1 }]);
const db = await connectNamespace("rest", {
uri: "https://catalog.example.com",
headers: { "x-api-key": process.env.CATALOG_KEY ?? "" },
});
const db = await connectNamespace("my.custom.Namespace", {
endpoint: "...",
});
connectNamespace(implName, config, options)
function connectNamespace(
implName,
config,
options?): Promise<Connection>
Connect through the built-in REST namespace.
Configured with RestNamespaceConfig. See the function-level documentation above for the full surface, examples, and how this relates to connect.
Parameters
-
implName:
"rest" -
config:
RestNamespaceConfig -
options?:
Partial<ConnectNamespaceOptions>
Returns
Promise<Connection>
Example
const db = await connectNamespace("rest", {
uri: "https://catalog.example.com",
headers: { "x-api-key": process.env.CATALOG_KEY ?? "" },
});
connectNamespace(implName, properties, options)
function connectNamespace(
implName,
properties,
options?): Promise<Connection>
Connect through a custom namespace implementation by full module path,
configured with a free-form string-keyed properties map. Use the
typed overloads above for the built-in "dir" and "rest" impls.
See the function-level documentation above for examples and how this relates to connect.
Parameters
-
implName:
string -
properties:
Record<string,string> -
options?:
Partial<ConnectNamespaceOptions>
Returns
Promise<Connection>
Example
const db = await connectNamespace("my.custom.Namespace", {
endpoint: "...",
});