The CLI supports loading from a SQLite database file or SQL text file. The CLI will automatically detect the type of data being used for the restore operation. Below shows an example of loading from the former.
The CLI supports loading from a SQLite database file or SQL text file. The CLI will automatically detect the type of data being used for the restore operation. Below shows an example of loading from the former.
```
```
~ $ sqlite3 restore.sqlite
~ $ sqlite3 mydb.sqlite
SQLite version 3.22.0 2018-01-22 18:45:57
SQLite version 3.22.0 2018-01-22 18:45:57
Enter ".help" for usage hints.
Enter ".help" for usage hints.
sqlite> CREATE TABLE foo (id integer not null primary key, name text);
sqlite> CREATE TABLE foo (id integer not null primary key, name text);
sqlite> INSERT INTO "foo" VALUES(1,'fiona');
sqlite> INSERT INTO "foo" VALUES(1,'fiona');
sqlite>
sqlite> .exit
~ $ ./rqlite
~ $ ./rqlite
Welcome to the rqlite CLI. Enter ".help" for usage hints.
Welcome to the rqlite CLI. Enter ".help" for usage hints.