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

Implement Database::clone_to_path #636

Closed
vlopes11 opened this issue Sep 21, 2022 · 0 comments
Closed

Implement Database::clone_to_path #636

vlopes11 opened this issue Sep 21, 2022 · 0 comments

Comments

@vlopes11
Copy link
Contributor

Some testing might require the fuel-core/Database to be copied into new paths so different cases might be tested in isolation one from the other.

This issue requires a new fn clone_to_path<P>(&self, path: P) -> io::Result<Database> where P: AsRef<Path> method that will copy all database contents and initialize a new instance in the provided path, mirroring the behavior of Database::open

This is required to further extend the covered cases for benchmark, where we prepare a database that will be used for every iteration of the benchmark tool.

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

No branches or pull requests

2 participants