Jordan Petridis
62da8bbb52
Use source_id as the unique identifieble field for the podcast table.
2017-11-25 01:56:10 +02:00
Jordan Petridis
12ffe5c231
Use a db transaction when deleting a feed.
2017-11-24 20:40:32 +02:00
Jordan Petridis
5570fdd118
Switched to using r2d2 instead of a databaseConnection object.
2017-11-23 21:09:50 +02:00
Jordan Petridis
a58671ea9a
Moved database related things into their own module.
2017-11-22 21:54:09 +02:00
Jordan Petridis
9bc6df2cba
Made Disel NewModels private.
2017-11-22 05:50:25 +02:00
Jordan Petridis
7be0b5bbf8
Added a url cleanr. Closes #4 .
2017-11-20 22:06:29 +02:00
Jordan Petridis
5890fe2bb4
Moved all diesel queries into hammond-data/src/dbquerries.rs module.
2017-11-20 20:05:00 +02:00
Jordan Petridis
0ce4107be4
Revert back to using an Arc<Mutex<Connection>> instead of the pool.
2017-11-20 18:09:53 +02:00
Jordan Petridis
ce29602431
I hate everything.
2017-11-20 16:57:27 +02:00
Jordan Petridis
beaeeffba8
Refactored dbquerries.
...
Refactored so dbquerries.rs module *should* be the only piece of code
that interacts with a Database connection. Insert stuff will be moved too.
2017-11-19 23:08:36 +02:00
Jordan Petridis
47b32ac000
Removed the Database type alias.
2017-11-19 22:39:51 +02:00
Jordan Petridis
55442529a8
Initial switch to using r2d2.
2017-11-19 22:06:10 +02:00
Jordan Petridis
494761beaf
Removed id function from diesel models.
...
It's automaticly declared upon derive identifiable,
And there's no need to overwrite it.
2017-11-18 15:23:40 +02:00
Jordan Petridis
1ec4370c7b
Moved Database type-alias into hammond-data/src/lib.rs.
2017-11-17 21:37:55 +02:00
Jordan Petridis
7b5bca2162
Partial cleanup of dbqueries.
2017-11-05 14:56:24 +02:00
Jordan Petridis
a31dc069de
Fixed #1 . Though it's an ugly hack for now.
2017-11-04 17:57:50 +02:00
Jordan Petridis
c942e357b7
Moved a batch update into a db transaction.
2017-10-31 13:10:36 +02:00
Jordan Petridis
401c13eee7
Refactored podcast_widget constructor.
2017-10-31 12:25:15 +02:00
Jordan Petridis
faf4a4bce0
Renamed watched field in the episode table of the database to played.
2017-10-30 14:13:36 +02:00
Jordan Petridis
ac80ab04d4
Added the ability to mark episodes of a Podcast as watched/played.
2017-10-30 13:02:35 +02:00
Jordan Petridis
eb8fdb2edb
Implemented a downloaded/watched cleaner.
2017-10-28 06:57:32 +03:00
Jordan Petridis
0137e1e49b
Implemented Partial feed deletion.
...
Cleans up the db but it leaves behind the downloaded content atm.
2017-10-26 15:02:44 +03:00
Jordan Petridis
51c1391d7d
Fixed a play button bug.
...
The local_uri value for the play button was assigned at parent widget evaluation,
instead when being clicked, and so when downloading something it would not be able
to open the file without reloading the parent widget and refreshing the value.
2017-10-23 00:27:16 +03:00
Jordan Petridis
5f3d2d5bdd
Minor readability imprvments.
2017-10-21 21:21:06 +03:00
Jordan Petridis
5fb783c0c0
Favor explicit refference cloning, as suggested by clippy.
2017-10-21 05:35:54 +03:00
Jordan Petridis
f1d3cd5e25
Applied some clippy suggestions.
2017-10-09 16:49:00 +03:00
Jordan Petridis
f25ce64e34
Initial split into workspaces in order to be more flexible.
2017-10-04 22:41:17 +03:00