From b4ae3f30972d568fefd68846ee4ec2d772e2c9ac Mon Sep 17 00:00:00 2001 From: Aidan <64613310+aidangomar@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:37:19 -0500 Subject: [PATCH] feat: node list tables pagination (#733) --- node/src/remote/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/src/remote/index.ts b/node/src/remote/index.ts index a7fc46f8..f2cd35ea 100644 --- a/node/src/remote/index.ts +++ b/node/src/remote/index.ts @@ -57,8 +57,8 @@ export class RemoteConnection implements Connection { return 'db://' + this._client.uri } - async tableNames (): Promise { - const response = await this._client.get('/v1/table/') + async tableNames (pageToken: string = '', limit: number = 10): Promise { + const response = await this._client.get('/v1/table/', { limit, page_token: pageToken }) return response.data.tables }