1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Fetch google sheets

This commit is contained in:
Adria Navarro 2023-05-23 09:55:46 +02:00
parent 76eef8d3d4
commit 74ea851fa3

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) {