Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MVP of persistence for the data connect emulator #7836

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

joehan
Copy link
Contributor

@joehan joehan commented Oct 15, 2024

Description

Starting to add support for data persistence between runs of the data conect emulator, as described in go/fdc-emu-import-api. This adds the emulators.dataconnect.dataDirectory field to firebase.json - when set, data will be saved to that directory and persisted between emulator runs.

Scenarios Tested

Ran a few CREATES, shut down the emulator, and verified they were still there on restart.

Follow up work

  • Add a Clear Data admin endpoint that empties out this directory, and give VSCode users an easy button to trigger it.
  • Proper Import/export support, likely using pglite.dataDirDump() and loadDataDir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant