feat: Implement list info, and drop commands

Save Sync now has persistent storage. Currently, you can add new Saves,
Remove them, and get info about them. The part of CRUD that is remaining
is Update. Documentation needs to be written, a lot of the public API
changed.
This commit is contained in:
2021-03-02 20:21:57 -06:00
parent ca934e370d
commit 125bc24ed0
10 changed files with 702 additions and 83 deletions

View File

@@ -1,8 +1,8 @@
-- Your SQL goes here
CREATE TABLE game_file (
id INTEGER PRIMARY KEY,
original_path BLOB NOT NULL, -- TEXT assumes a Unicode Encoding
file_hash INTEGER NOT NULL, -- u64, but that's not
id INTEGER PRIMARY KEY NOT NULL,
original_path TEXT NOT NULL, -- TEXT assumes a Unicode Encoding
file_hash BLOB NOT NULL,
game_save_id INTEGER NOT NULL,
FOREIGN KEY (game_save_id) REFERENCES game_save_location (id)
)

View File

@@ -1,7 +1,7 @@
-- Your SQL goes here
CREATE TABLE game_save_location (
id INTEGER PRIMARY KEY,
friendly_name TEXT -- This can be null
original_PATH BLOB NOT NULL,
id INTEGER PRIMARY KEY NOT NULL,
friendly_name TEXT, -- This can be null
original_path TEXT NOT NULL,
uuid BLOB NOT NULL
)