Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-30 | main: If repo was updated, save new `updated_at` value | Teddy Wing | |
If the repo was updated since we last cached it, update the `updated_at` column to the new value so we know that we fetched the latest. | |||
2021-05-30 | database::repo_is_updated: Use `fetch_optional` | Teddy Wing | |
I think I like this better than checking the `RowNotFound` error. | |||
2021-05-30 | Check if repo was updated based on `updated_at` timestamp | Teddy Wing | |
Find out if the latest copy is more recent than the cached value in our database. | |||
2021-05-30 | database: Use a custom `Error` type | Teddy Wing | |
Get rid of the boxed errors to make matching on errors easier. | |||
2021-05-30 | database: Implement `From<github::Repo>` for `database::Repo` | Teddy Wing | |
2021-05-30 | database: Change `GithubRepo` arguments to `Repo` | Teddy Wing | |
Also change `repo_insert()` to take only a single repo instead of a slice of them. | |||
2021-05-30 | database::Repo: Make `id` non-optional | Teddy Wing | |
2021-05-30 | database::repo_get: Don't need my own error for empty row | Teddy Wing | |
Sqlx already returns an appropriate error if no row was found. | |||
2021-05-30 | database: Add a way to get a single repo | Teddy Wing | |
2021-05-29 | Create SQLite database | Teddy Wing | |
Set up the database with a table for repositories so we can cache when they were last updated. | |||
2021-05-29 | Start setting up database interface | Teddy Wing | |