Stephen Seo
fbf47027ef
backend: refactorings, impl "board_state" query
...
Implemented the fifth backend protocol request/response ("board_state").
Some refactorings involve improving readability from handling unwrapping Option
of &Connection objects.
2022-03-30 20:44:18 +09:00
Stephen Seo
c5b9156df3
backend: Some refactoring
...
Reuse "check if player exists" fn where needed. Also, the same fn was
refactored to handle using an existing DB Connection.
2022-03-29 17:10:12 +09:00
Stephen Seo
fe56adf562
backend: Impl second backend protocol query
2022-03-29 17:02:57 +09:00
Stephen Seo
545b5a3a1b
backend: Move fn init_conn into handler struct
2022-03-29 15:05:23 +09:00
Stephen Seo
40b2333767
Refactor db_handler to use struct to split up code
...
Also refactored the GetID send value type.
2022-03-29 15:03:08 +09:00
Stephen Seo
e7c3670498
backend: Update db_handler's db spec.
2022-03-28 17:13:32 +09:00
Stephen Seo
a1668aa0b6
backend: Remove "games.date_changed" from db spec.
2022-03-28 17:12:01 +09:00
Stephen Seo
760a6bda4f
backend: Add "date_added" column to db spec.
2022-03-28 17:10:49 +09:00
Stephen Seo
fcd20af9bd
backend: Use enum to handle multiple db requests
2022-03-28 16:31:53 +09:00
Stephen Seo
6c47ce948b
Impl graceful shutdown of backend on failure
2022-03-18 23:43:15 +09:00
Stephen Seo
5a0c0696d1
Impl enough backend to assign ids to players
2022-03-18 19:29:38 +09:00