Commit Graph

25 Commits

Author SHA1 Message Date
Natsumi
09c4087ed4 Revert cleanup 2023-06-07 18:28:13 +12:00
Natsumi
7b63859de9 more cleanup 2023-06-07 01:03:33 +12:00
Natsumi
e1de8508c6 cleanup 2023-06-07 01:03:29 +12:00
Teacup
0101f3474f Add systems for local world persistence (#553)
* chore: Change vscode workspace settings to work with omnisharp

* refactor(.NET): Use connection string builder to init sqlite database

* docs(.NET): Add method documentation to most things that matter

* docs(.NET): Add more docs I forgot to commit apparently

* feat: Add PoC world database structure ^& http listener

* fix: Send a response if VRCX isn't initialized rather than hanging

* feat: Initialize world db schema on startup

* feat: Allow worlds to store data in db through logfile

* use existing current location for worldDB

* Add tooltips

* chore: Make it so vscode can format C# files without prettier

* refactor: Add sqlite-net to (eventually) replace sqlite impl

* refactor: Make use of sqlite-net for world database

* docs: Add todo for fixing some random exception

* refactor: Remove now-unused SQLiteWorld

* refactor: Fix DB init query and change table structure again

* refactor: Add WorldDataRequest, add attributes for camelcase json keys

* Support current user location from API in addition to gameLog

* Change current location check for worldDB

* feat: Take store requests in JSON, identify worlds by GUID on store.

* refactor: Remove unused worldId param from connection key generator

* docs: Add more documentation to the methods for the world database

* fix: Hey wait that's not a primary key

* feat: Add a 10MB data cap for worlds shared across all of their rows.

* fix: Don't calculate size of world date twice when inserting

* refactor: Discard the guid variable since we only check for validity

* docs: Add docs/comments for new data cap functionality

* feat: Implement /getbulk API endpoint

* fix: Correct WorldDB init query typo

* fix: Update data entries properly instead of using 'OR REPLACE'

* refactor: Move endpoint processing to separate methods

* refactor: Add another check for error 503, remove old code

* feat: Add debug capability to /vrcx/getbulk

* fix: Correct the usage of getUser in actuallyGetCurrentLocation

* feat: Add store errors, implement external reading, stop 404ing

* docs: Add docs for new world db funcs

* refactor: Change world db server listen port to 22500

* fix: Use getUser correctly, dumb dumb

* fix: This error set shouldn't be here

* feat: Future-proof api endpoints. Add /status endpoint

---------

Co-authored-by: Natsumi <cmcooper123@hotmail.com>
2023-06-01 10:34:50 +12:00
Natsumi
97761f81c1 --config="C:\DB.sqlite" 2022-03-31 01:55:58 +13:00
Natsumi
a66ff77fce Move config to AppData 2021-08-03 23:51:13 +12:00
pypy
e24c71481e sanity check 2021-01-09 14:28:13 +09:00
pypy
0291211e4f store cookies to sqlite 2020-11-18 21:40:10 +09:00
pypy
7a1067e21c cleanup code 2020-11-08 15:32:14 +09:00
pypy
c05e884cb5 use cached path 2020-11-08 14:47:53 +09:00
pypy
77558f8835 cleanup code 2020-11-07 19:41:50 +09:00
pypy
e6e797f7d6 cleanup code 2020-11-07 18:46:42 +09:00
pypy
547c978dab add trailing newline 2020-11-07 17:22:16 +09:00
pypy
ab3bbc6d68 bugfix 2020-11-02 01:11:14 +09:00
pypy
a2e8b5e5c9 async sqlite 2020-11-02 00:56:12 +09:00
pypy
c051dccecf cleanup code 2020-11-01 23:41:21 +09:00
pypy
87f6c985c5 bugfix 2020-11-01 21:35:41 +09:00
pypy
c2a0250be9 remove unsafe sqlite options, increase busy_timeout 2020-11-01 21:15:50 +09:00
pypy
7c4563bf9b change startup path #69 2020-07-13 21:30:47 +09:00
pypy
a787bfb739 cleanup code 2020-07-13 21:29:27 +09:00
pypy
f98c90b43b update db connection string 2020-04-19 07:32:57 +09:00
pypy
a9d454308b make singleton 2020-03-21 16:39:35 +09:00
pypy
8a699c63ae v2019.08.20 2019-08-20 12:52:20 +09:00
pypy
eee4f6cce6 v2019.08.19 2019-08-19 23:28:31 +09:00
pypy
26b371fd0f v2019.08.19 2019-08-19 23:21:08 +09:00