Jordan Petridis
e07683c046
partially-fixed the tests and benchmarks.
2017-11-20 01:08:34 +02:00
Jordan Petridis
5ad52fa4b2
Refactored to remove from Database refferences.
2017-11-19 23:32:37 +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
a6dbf65575
Move stuff from hammond_data/src/lib.rs into utils.
2017-11-18 20:55:19 +02:00
Jordan Petridis
563f249a48
Reverted index_channel items to the synchronous version.
...
Using a transaction yields ~1/3 better performance as of now.
2017-11-18 19:57:50 +02:00
Jordan Petridis
5c84b77434
Converted iter_mut into into_iter wherever possible.
2017-11-18 19:23:25 +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
1bf5187e48
Renamed hammond-data/src/feedparser.rs module into parser.rs.
2017-11-18 15:05:55 +02:00
Jordan Petridis
6894f33895
Renamed hammond-data/src/index_feeds.rs module into feed.rs.
2017-11-18 14:32:58 +02:00
Jordan Petridis
450643371c
Renamed index_feeds and fetch_feeds functions.
2017-11-18 14:24:52 +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
e66a337468
Moved indexing episode into a NewEpisode method.
...
There is a performance reggresion caused by the introduction of
Arc<Mutex<Connection>> instead of Connection that should be refactored.
Also removed the db transcaction as it was incomplete.
2017-11-17 20:01:59 +02:00
Jordan Petridis
282a29e7dd
Move some indexing functions into methods of insertable models.
2017-11-17 18:58:44 +02:00
Jordan Petridis
8eca46871d
Moved insert_return functions into methods of insertable models.
2017-11-17 18:10:29 +02:00
Jordan Petridis
2152aa9034
Convert Feed struct-tuple into a plain struct.
2017-11-17 16:24:48 +02:00
Jordan Petridis
3d108d4a7a
Make Feed fields private.
2017-11-17 16:12:11 +02:00
Jordan Petridis
54a0f17588
Initial draft of hammond-data/src/index_feed.rs API redesign.
2017-11-17 13:26:39 +02:00
Jordan Petridis
3c6176b1c0
Renamed hammond-data/src/dbcheckup.rs into utils.rs
2017-11-16 23:32:40 +02:00
Jordan Petridis
cfb876e006
Split hammond-data/models into sub modules.
2017-11-15 17:42:22 +02:00
Jordan Petridis
118846f255
Added extra columns to podcast and episode tables.
2017-11-15 16:58:21 +02:00
Jordan Petridis
a286014a62
Refactored indexing functions of the Diesel models.
2017-11-14 17:56:28 +02:00
Jordan Petridis
6996759db5
Removed the file open syscall from the benchmark.
2017-11-14 15:02:32 +02:00
Jordan Petridis
58e11f17b7
Use bigger rss feeds for benchmarking.
2017-11-14 14:49:43 +02:00
Jordan Petridis
edd694e7d6
Added initial feed indexing benchmark.
2017-11-14 14:09:13 +02:00
Jordan Petridis
03637903c6
Update dependancies.
2017-11-14 13:06:09 +02:00
Jordan Petridis
fe571df1d5
Changed the XDG folder from Hammond to hammond, Added make tar.
2017-11-10 14:09:05 +02:00
Jordan Petridis
1fbacad8b9
Updated rayon.
2017-11-10 11:42:11 +02:00
Jordan Petridis
07c1395c29
Cleanup of downloader module.
2017-11-09 17:47:38 +02:00
Jordan Petridis
4e6ed416ee
Disabled http refers.
2017-11-07 10:28:04 +02:00
Jordan Petridis
36271afcdd
Error types cleanup.
2017-11-05 15:36:54 +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
a9dec8dbe8
Refactored refresh_feed.
2017-11-04 13:56:23 +02:00
Jordan Petridis
7a1b272d9e
Removed code duplication and combined refresh_feed and refresh_db.
2017-11-04 13:36:25 +02:00
Jordan Petridis
0e6b6b2cce
Update dependancies.
2017-11-01 10:54:36 +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
25344aa613
Applied clippy suggestions.
2017-10-30 13:15:44 +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
1cdae2b8b0
Temporary exposed download cleaner into the gui.
2017-10-28 08:51:59 +03:00
Jordan Petridis
eb8fdb2edb
Implemented a downloaded/watched cleaner.
2017-10-28 06:57:32 +03:00
Jordan Petridis
86c686bba6
Added watched field into the Episodes table.
2017-10-28 04:58:35 +03:00
Jordan Petridis
e6ceb86201
Completed functionality of the delete buttons.
2017-10-27 04:31:39 +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
674b233805
Wired and implemented the functionality for episde delete button.
2017-10-26 14:00:33 +03:00
Jordan Petridis
8a313c145b
Made a type allias for Arc<Mutex<SqliteConnection>.
2017-10-23 12:29:04 +03:00
Jordan Petridis
0e5d976514
Database optimizations.
2017-10-23 10:47:54 +03:00