refactor: Use struct to parse API responses
- Return bytes for each request to the Flexpool API - Delegate JSON marshalling the higher functions - Use int64 when possible BREAKING CHANGE: database structure has to be updated to use integer instead of real. Please follow instructions to upgrade from 1.0 to 1.1. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
c4f3854861
commit
ebbd4ac2cd
8 changed files with 133 additions and 65 deletions
9
UPGRADES.md
Normal file
9
UPGRADES.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# 1.0 to 1.1
|
||||
|
||||
Some numeric types have been updated from **float64** to **int64**. Upgrade the database types by running the following migration:
|
||||
|
||||
```
|
||||
sqlite3 flexassistant.db < migrations/1.0_to_1.1.sql
|
||||
```
|
||||
|
||||
And replace `flexassistant.db` by the content of the `database_file` setting if it's has been changed.
|
||||
Reference in a new issue