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

Send converted draft data to a MySQL database on the NUC #2

Open
1 of 5 tasks
Cinzya opened this issue Feb 22, 2023 · 0 comments
Open
1 of 5 tasks

Send converted draft data to a MySQL database on the NUC #2

Cinzya opened this issue Feb 22, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@Cinzya
Copy link
Member

Cinzya commented Feb 22, 2023

For debugging purposes but also future features we want to save all the data going out through the websocket.
The plan right now is to spin up a MySQL Database and send the necessary data with each heartbeat to it.
The database will hold a table with following columns:

  • id: int
  • draft_id: datetime
  • timestamp: datetime
  • json_data: json
  • active_match: int
  • heartbeat: int
  • completed: boolean | default= false

The id and timestamp are automatically assigned by the database.

Necessary steps will be:

  • Create a MySQL Database with a table @svenvv
  • Establish a connection to the database on the backend
  • Listen to the champ select status
  • Start writing to the database when champ select is active
  • Stop writing to the database when champ select concludes
@Cinzya Cinzya added the feature New feature or request label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants