Restores the database from a file.
Note
Example usage
The following example assumes the presence of a file called backup.surql in the same directory as the current project. To quickly create it, copy and paste the example for the .export() method.
The .import() method for the SurrealDB Rust SDK restores the database from a file.
Restores the database from a file.
The following example assumes the presence of a file called backup.surql in the same directory as the current project. To quickly create it, copy and paste the example for the .export() method.