https://github.com/naturalcycles/spreadsheet-lib
CommonDB implementation backed by a Google Spreadsheet
https://github.com/naturalcycles/spreadsheet-lib
commondb gdrive spreadsheet
Last synced: about 2 months ago
JSON representation
CommonDB implementation backed by a Google Spreadsheet
- Host: GitHub
- URL: https://github.com/naturalcycles/spreadsheet-lib
- Owner: NaturalCycles
- Created: 2020-05-24T18:53:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T07:40:20.000Z (12 months ago)
- Last Synced: 2025-01-24T12:32:31.273Z (3 months ago)
- Topics: commondb, gdrive, spreadsheet
- Language: TypeScript
- Size: 1.84 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: readme.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## @naturalcycles/spreadsheet-lib
> [CommonDB](https://github.com/NaturalCycles/db-lib) implementation backed by a Google Spreadsheet
[](https://www.npmjs.com/package/@naturalcycles/spreadsheet-lib)
[](https://circleci.com/gh/NaturalCycles/spreadsheet-lib)
[](https://github.com/prettier/prettier)# Example
```typescript
// 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'])
// ...
```