fix: node remote implement table.countRows (#648)

This commit is contained in:
Bert
2023-11-13 17:43:20 -05:00
committed by GitHub
parent 1c872ce501
commit 797514bcbf

View File

@@ -237,7 +237,8 @@ export class RemoteTable<T = number[]> implements Table<T> {
}
async countRows (): Promise<number> {
throw new Error('Not implemented')
const result = await this._client.post(`/v1/table/${this._name}/describe/`)
return result.data?.stats?.num_rows
}
async delete (filter: string): Promise<void> {