Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naturalcycles/spreadsheet-lib
CommonDB implementation backed by a Google Spreadsheet
https://github.com/naturalcycles/spreadsheet-lib
commondb gdrive spreadsheet
Last synced: 28 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T07:40:20.000Z (8 months ago)
- Last Synced: 2024-11-12T20:20:34.573Z (about 1 month 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
[![npm](https://img.shields.io/npm/v/@naturalcycles/spreadsheet-lib/latest.svg)](https://www.npmjs.com/package/@naturalcycles/spreadsheet-lib)
[![](https://circleci.com/gh/NaturalCycles/spreadsheet-lib.svg?style=shield&circle-token=123)](https://circleci.com/gh/NaturalCycles/spreadsheet-lib)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](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'])
// ...
```