Fetch google sheets

This commit is contained in:
Adria Navarro 2023-05-23 09:55:46 +02:00
parent 76eef8d3d4
commit 74ea851fa3
1 changed files with 4 additions and 3 deletions

View File

@ -243,9 +243,10 @@ class GoogleSheetsIntegration implements DatasourcePlus {
}
}
getTableNames(): Promise<string[]> {
// TODO: implement
return Promise.resolve([])
async getTableNames(): Promise<string[]> {
await this.connect()
const sheets = this.client.sheetsByIndex
return sheets.map(s => s.title)
}
getTableSchema(title: string, headerValues: string[], id?: string) {