@naturalcycles/spreadsheet-lib
v1.1.0
Published
CommonDB implementation backed by a Google Spreadsheet
Downloads
14
Readme
@naturalcycles/spreadsheet-lib
CommonDB implementation backed by a Google Spreadsheet
Example
// Setup SpreadsheetDB
const db = new SpreadsheetDB({
gcpServiceAccount: {
client_email: '[email protected]'
private_key: 'verysecret',
},
spreadsheetId: '17meRABNrr4Pik9FF5HRQgRxxi4kjY2_dCHg3k2nqGGE',
})
// Use it as CommonDB
const items = await db.getByIds('TEST_TABLE', ['id1', 'id2'])
// ...