Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Carbg 52 integration sq lite with lobby client #19

Open
wants to merge 70 commits into
base: develop
Choose a base branch
from

Conversation

erikayeah
Copy link
Collaborator

@erikayeah erikayeah commented Sep 6, 2024

This PR integrates SQLite with the LobbyClient and updates the test suite accordingly. It is based on the changes from the CARBG-52-Integration-SQLite-with-LobbyClient branch and includes updates from PR #15 ("Add functionality to list matches and create new games").

Key Updates:
SQLite Integration:
Added SQLite support for managing game states and transactions.

Test Modifications:
Improved input validation and error handling in key methods like createMatch and joinMatch.

* fixing the branch problem and sqlti integration

I had created the branch with the old version of develop so it did not have the new changes.

* Update sqlite3.ts

* chore: added sqlite export

* ADD som fixes

ADD FIXES

* removing unnecessary imports of sqlite.ts

* NEW FIXES

* FIXES

* Update sqlite3.ts

* fix log error

* Update sqlite3.ts

* added a new table called players

* Update sqlite3.ts

* UPDATE LOGS

UPDATE LOGS, MODIFY SETLOG AND GETLOG

* add wipe method

add wipe method

* add list matches

add first commit of list matches

* Update sqlite3.ts

* ADD TEST FILE AND SOME FIXES

* Update sqlite3.ts

* add fixes

* add fixes

* delete console.log

* some fixes in sqlite.test file

I upload corrections in the test file, and the clearAll method  is added so that I can clean up the base at each iteration of the test.

* changed name from clearAll to clear

changed name from clearAll to clear in sqlite.test file

* add refacts

* add console.log after each

* ad fixes

* add refacts

* added console.logs

* Update sqlite3.ts

* Update sqlite3.ts

* Update master.ts

* Update master.ts

* ADDED MORE LOGS

* Update sqlite3.ts

* added more changes

* added more logs

* added logs

* Update sqlite3.ts

* Update master.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update cartesify-transport.ts

* Update cartesify-transport.ts

* Update cartesify-transport.ts

* added more changes

* added more console logs

* delete all console.logs , and added await on master.OnUpdate

* addded modifications in set metadata

* added comments to the methods

* fix: remove unused script

* fix: ran prettier on the sqlite3 file and added some comments to the methods

---------

Co-authored-by: Lucas Marc <74575331+lucas-marc@users.noreply.github.com>
Co-authored-by: Juan Manuel Aragon Paz <98961821+jm-aragonpaz@users.noreply.github.com>
* fixing the branch problem and sqlti integration

I had created the branch with the old version of develop so it did not have the new changes.

* Update sqlite3.ts

* chore: added sqlite export

* ADD som fixes

ADD FIXES

* removing unnecessary imports of sqlite.ts

* NEW FIXES

* FIXES

* Update sqlite3.ts

* fix log error

* Update sqlite3.ts

* added a new table called players

* Update sqlite3.ts

* UPDATE LOGS

UPDATE LOGS, MODIFY SETLOG AND GETLOG

* add wipe method

add wipe method

* add list matches

add first commit of list matches

* Update sqlite3.ts

* ADD TEST FILE AND SOME FIXES

* Update sqlite3.ts

* add fixes

* add fixes

* delete console.log

* some fixes in sqlite.test file

I upload corrections in the test file, and the clearAll method  is added so that I can clean up the base at each iteration of the test.

* changed name from clearAll to clear

changed name from clearAll to clear in sqlite.test file

* add refacts

* add console.log after each

* ad fixes

* add refacts

* added console.logs

* Update sqlite3.ts

* Update sqlite3.ts

* Update master.ts

* Update master.ts

* ADDED MORE LOGS

* Update sqlite3.ts

* added more changes

* added more logs

* added logs

* Update sqlite3.ts

* Update master.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update sqlite3.ts

* Update cartesify-transport.ts

* Update cartesify-transport.ts

* Update cartesify-transport.ts

* added more changes

* added more console logs

* delete all console.logs , and added await on master.OnUpdate

* addded modifications in set metadata

* added comments to the methods

* fix: remove unused script

* fix: ran prettier on the sqlite3 file and added some comments to the methods

---------

Co-authored-by: Lucas Marc <74575331+lucas-marc@users.noreply.github.com>
Co-authored-by: Juan Manuel Aragon Paz <98961821+jm-aragonpaz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants