feat: Add request types to delete data/change external reads setting

This commit is contained in:
Teacup
2023-06-03 16:51:18 -04:00
committed by Natsumi
parent e0bde3be98
commit 7e17af8c7a
2 changed files with 116 additions and 21 deletions
+10
View File
@@ -283,6 +283,16 @@ END;";
return query.FirstOrDefault();
}
public void DeleteDataEntry(string worldId, string key)
{
sqlite.Execute("DELETE FROM data WHERE world_id = ? AND key = ?", worldId, key);
}
public void DeleteAllDataEntriesForWorld(string worldId)
{
sqlite.Execute("DELETE FROM data WHERE world_id = ?", worldId);
}
public void Close()
{
sqlite.Close();