feat(nodejs): feature parity [2/N] - add table.name and lancedb.connect({args}) (#1380)

depends on https://github.com/lancedb/lancedb/pull/1378

see proper diff here
https://github.com/universalmind303/lancedb/compare/remote-table-node...universalmind303:lancedb:table-name
This commit is contained in:
Cory Grinstead
2024-06-21 11:38:26 -05:00
committed by GitHub
parent 0fe844034d
commit b3e5ac6d2a
7 changed files with 59 additions and 18 deletions

View File

@@ -98,6 +98,8 @@ export abstract class Table {
[Symbol.for("nodejs.util.inspect.custom")](): string {
return this.display();
}
/** Returns the name of the table */
abstract get name(): string;
/** Return true if the table has not been closed */
abstract isOpen(): boolean;
@@ -412,7 +414,9 @@ export class LocalTable extends Table {
super();
this.inner = inner;
}
get name(): string {
return this.inner.name;
}
isOpen(): boolean {
return this.inner.isOpen();
}