Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Users should be able to configure the default location for @truffle/db persistence #4495

Open
gnidan opened this issue Dec 6, 2021 · 0 comments
Assignees

Comments

@gnidan
Copy link
Contributor

gnidan commented Dec 6, 2021

Issue

Right now, @truffle/db by default stores everything in the global Truffle config directory (~/.config/truffle or such on Linux, other directories on other platforms). This can cause trouble because @truffle/db remains a bit experimental, and so users might not want to risk collision or breakages and may instead prefer to store their persistent records on a per-project basis.

This issue proposes that we add a user-level config flag to favor per-project persistence over the current default of global persistence.

Maybe this config looks like:

{
  /* ... */
  db: {
    defaultPersistPerProject: true // this is a terrible name
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants