Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syucream/embulk-input-firestore
Google Cloud Firestore input plugin for Embulk.
https://github.com/syucream/embulk-input-firestore
cloud-firestore embulk-input-plugin
Last synced: about 1 month ago
JSON representation
Google Cloud Firestore input plugin for Embulk.
- Host: GitHub
- URL: https://github.com/syucream/embulk-input-firestore
- Owner: syucream
- License: mit
- Created: 2019-12-31T15:57:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T16:02:11.000Z (almost 5 years ago)
- Last Synced: 2024-05-01T21:36:22.864Z (6 months ago)
- Topics: cloud-firestore, embulk-input-plugin
- Language: Scala
- Homepage: https://rubygems.org/gems/embulk-input-firestore
- Size: 63.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# embulk-input-firestore
[![Gem Version](https://badge.fury.io/rb/embulk-input-firestore.svg)](https://badge.fury.io/rb/embulk-input-firestore)
[Google Cloud Firestore](https://firebase.google.com/docs/firestore) input plugin for Embulk.
You can use filter plugins such as [embulk-filter-expand_json](https://github.com/civitaspo/embulk-filter-expand_json) or [embulk-filter-add_time](https://github.com/treasure-data/embulk-filter-add_time) to convert the json column to typed columns. [Rename filter](http://www.embulk.org/docs/built-in.html#rename-filter-plugin) is also useful to rename the typed columns.
## Overview
* **Plugin type**: input
* **Guess supported**: no## Configuration
- **project_id**: GCP project_id (string, required)
- **json_keyfile**: path to GCP credential json file (string, required)
- **sql**: A query string to fetch documents from Firestore (string, required)
- **json_column_name**: column name used in outputs (string, optional, default: "record")### NOTE
- **sql** parameter accepts only limited syntax; see also https://github.com/syucream/FireSQL
## Example
```yaml
in:
type: firestore
project_id: "your-project-id"
json_keyfile: path/to/credential.json
sql: "SELECT id, name, created_at FROM users"out:
type: stdout
```## Development
```shell script
$ ./gradlew gem
```