|
0a802befb8
|
For {insert,read}_sql, use connection as argument, return QueryResult
|
2022-12-10 15:29:21 +01:00 |
|
|
d706119188
|
Move use statement to top of file
|
2022-12-10 15:22:47 +01:00 |
|
|
21b3411c28
|
Rename load_sql to read_sql
|
2022-12-10 15:20:11 +01:00 |
|
|
b07c64fec0
|
Move Cache to models.rs, add InsertCache and insert function
|
2022-12-10 15:15:57 +01:00 |
|
|
d995bf904c
|
Minor doc change
|
2022-12-10 14:37:21 +01:00 |
|
|
a2c8107656
|
Propagate errors when loading data from sql
|
2022-12-10 14:34:52 +01:00 |
|
|
f363e84ce9
|
Move definition of Cache struct into cache.rs
|
2022-12-10 14:30:46 +01:00 |
|
|
9c1711e8fa
|
Add call to load_sql
|
2022-12-10 11:48:29 +01:00 |
|
|
4349e35060
|
Add code to get items from sql cache
|
2022-12-10 11:27:55 +01:00 |
|
|
51375f0086
|
Add Cache struct and some comments
|
2022-12-09 16:24:54 +01:00 |
|
|
e16c2e53c7
|
We probably don't need to impl std::error::Error if we implemented From
|
2022-12-09 16:18:28 +01:00 |
|
|
7f98d3cbba
|
Remove csv stuff with start of diesel stuff
|
2022-12-09 15:57:21 +01:00 |
|
|
99ab309912
|
Create database with a simple table cache
|
2022-12-09 14:57:01 +01:00 |
|
|
daa6121a6d
|
Remove sql_cache call in lib
|
2022-12-08 22:55:18 +01:00 |
|
|
eb3f4fa4d7
|
Add cache.rs, with an example test.csv file
|
2022-12-08 22:42:39 +01:00 |
|
|
b130fce397
|
Rearrange imports
|
2022-12-08 21:18:27 +01:00 |
|
|
4a65e5336c
|
Fix comment
|
2022-12-08 20:52:21 +01:00 |
|
|
7c8d2fe5f8
|
Fix a comment
|
2022-12-08 20:48:06 +01:00 |
|
|
d88c0ebc64
|
Change module doc a bit
|
2022-12-08 17:43:55 +01:00 |
|
|
5e926f1357
|
Merge module token with parent
|
2022-12-08 17:42:05 +01:00 |
|
|
9fe31894c2
|
Add documentation comments
|
2022-12-08 17:37:10 +01:00 |
|
|
4b9cee2289
|
In lib::run, propagate errors to main
|
2022-12-08 17:22:42 +01:00 |
|
|
b265eae52e
|
Propagate errors from token reading from file
|
2022-12-08 17:05:40 +01:00 |
|
|
bff55dad46
|
Rename .vt_token to .token
|
2022-12-08 16:56:47 +01:00 |
|
|
a69fa1eb90
|
Add lib.rs file
|
2022-12-08 14:21:07 +01:00 |
|
|
9f934c40ae
|
Added print
|
2022-12-02 23:15:22 +01:00 |
|
|
05a934cb3c
|
Send actual json
|
2022-12-02 23:10:07 +01:00 |
|
|
073ecc88b4
|
Send json as string
|
2022-12-02 22:56:16 +01:00 |
|
|
2a5f6063b0
|
Pass the stream to sender
|
2022-12-02 22:50:15 +01:00 |
|
|
f55a6bd581
|
Move functions to get to send_data part
|
2022-12-02 22:39:30 +01:00 |
|
|
465591215c
|
Add listener for incoming HTTP connections
|
2022-12-02 22:17:23 +01:00 |
|
|
ebfbe46dca
|
Stop lint nagging for a bit
|
2022-12-02 21:33:35 +01:00 |
|
|
b52ebc5739
|
Move send_data to new struct Mouth
|
2022-12-02 21:31:49 +01:00 |
|
|
842337b22b
|
Move receive_request to new struct Ear
|
2022-12-02 21:28:04 +01:00 |
|
|
8f1de83dfb
|
Remove unused get_url method
|
2022-12-02 21:16:37 +01:00 |
|
|
d50a0cffd7
|
Minor rename
|
2022-12-02 21:15:47 +01:00 |
|
|
5c9b7b8084
|
Simplify token read with convenience function
|
2022-12-02 21:05:35 +01:00 |
|
|
d7a93ad0a8
|
Add some interfaces for needed functions
|
2022-12-02 17:03:17 +01:00 |
|
|
528bc181c9
|
Don't use async/await, for now, rename project hephaistos
|
2022-12-02 16:50:07 +01:00 |
|
|
48928fed65
|
Deserialize to json
|
2022-12-02 13:34:18 +01:00 |
|
|
35fa386dd3
|
Print .text() of output
|
2022-12-02 13:18:47 +01:00 |
|
|
e0056d2e9c
|
Move api client in struct field
|
2022-12-02 11:28:47 +01:00 |
|
|
2ed60fa0f3
|
Minor change
|
2022-12-02 11:23:37 +01:00 |
|
|
c774a705e0
|
Remove unneeded field
|
2022-12-02 11:23:25 +01:00 |
|
|
0bc5559e60
|
Moving api_call elements to a struct
|
2022-12-02 11:12:28 +01:00 |
|
|
09b17dd554
|
Add get_url function that replaces api_call()
|
2022-12-02 10:21:35 +01:00 |
|
|
3a0bb9c805
|
Read api key from file
|
2022-12-02 10:16:35 +01:00 |
|
|
262a03a125
|
Remove struct
|
2022-12-02 10:02:11 +01:00 |
|
|
9a52403ba3
|
Clean up and move to lib
|
2022-12-02 08:27:34 +01:00 |
|
0llino
|
d2f8deca83
|
saved changes
|
2022-12-02 08:17:54 +01:00 |
|