firebase / firebase/extensions
Add --force option to @firebaseextensions/fs-bq-schema-views
- Dominant language
- TypeScript
- Stars
- 979
- Forks
- 433
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 127
Description
This feature request is for extension: **firestore-bigquery-export**
### What feature would you like to see?
Adding a `--force` flag to the `@firebaseextensions/fs-bq-schema-views` would simplify matching the deployed views with version controlled configuration. Changes in the schema can lead the script to fail if the changes are in some way incompatible.
With the `--force` flag the view should always be created or replaced as with the SQL statement `CREATE OR REPLACE VIEW`.
### How would you use it?
I generate schema files from typescript interfaces that represent my current firestore datamodel. Upon changes I want to recreate the schema files and rerun `@firebaseextensions/fs-bq-schema-views` to update the views to match my latest configuration. Dropping and recreating the views should be no problem, as these are just views and the real data is kept in the changelog tables.
Currently the views have to be deleted manually, which is cumbersome and error prone.
Contributor guide
Assessment
This issue has not been assessed yet.