Replace database methods with peewee ORM #39

Merged
osilkin98 merged 26 commits from orm-rewrite into master 2020-04-03 23:40:43 +02:00

26 commits

Author SHA1 Message Date
Oleg Silkin
75c8f82072 Add todos 2020-04-03 16:40:05 -04:00
Oleg Silkin
38e9af24ec Update .gitignore 2020-04-03 16:07:23 -04:00
Oleg Silkin
a84e0e0f84 Add docker-compose.yml 2020-04-03 15:38:29 -04:00
Oleg Silkin
fd05ea1145 Update travis config & add generic yaml config 2020-04-03 15:33:23 -04:00
Oleg Silkin
c27baa89fe rate limit comments 2020-04-01 18:52:36 -04:00
Oleg Silkin
84cafd643f replace oracle driver with pymysql driver 2020-04-01 18:50:09 -04:00
Oleg Silkin
3b6b052000 Removes incorrect method for get_channel_from_comment_id 2020-04-01 18:49:37 -04:00
Oleg Silkin
20f9ccc8c5 Moves to using CharField in place of TextField 2020-04-01 18:49:03 -04:00
Oleg Silkin
08060a71d3 Implements hide_comments method using ORM 2020-04-01 18:13:28 -04:00
Oleg Silkin
c852697c94 reimplements abandon method using ORM; no longer require channel_id param 2020-04-01 18:12:46 -04:00
Oleg Silkin
8f12d997ae json -> yaml 2020-03-31 13:59:37 -04:00
Oleg Silkin
a6f056821f Adds a strict validator which fails upon possible FK violations 2020-03-31 13:59:20 -04:00
Oleg Silkin
bd06d1c992 Improves database configuration 2020-03-31 13:57:30 -04:00
Oleg Silkin
1153711636 Reimplements API methods using ORM 2020-03-31 13:55:44 -04:00
Oleg Silkin
e0b6d16c89 Removes certain sqlite-specific functions from application 2020-03-30 22:00:10 -04:00
Oleg Silkin
dba14460cc Unittests using peewee binds instead of direct sqlite connection 2020-03-30 21:59:26 -04:00
Oleg Silkin
45733d2dc4 Remove queries.py 2020-03-30 21:58:37 -04:00
Oleg Silkin
aee12eba54 removes inherited base database in favor of binding api 2020-03-30 21:58:07 -04:00
Oleg Silkin
a22b4a9162 Adds delete, edit, and hide operations 2020-03-30 18:04:20 -04:00
Oleg Silkin
8138e71668 Sets database dynamically 2020-03-30 18:02:20 -04:00
Oleg Silkin
510f2a5d29 Adds comment create logic 2020-03-27 17:44:51 -04:00
Oleg Silkin
63f2c7e9e0 Moves the clean method to misc.py, moves misc.py 2020-03-27 17:44:22 -04:00
Oleg Silkin
644e5e8477 adds get_channel_from_id & simplifies to all call comment_list 2020-03-27 15:59:57 -04:00
Oleg Silkin
cc20088b06 Implements all search queries 2020-03-27 05:07:56 -04:00
Oleg Silkin
a581425a64 Shifts from JSON configuration to yml based 2020-03-27 01:26:13 -04:00
Oleg Silkin
0529fa7d01 Implements DB model and preliminary select queries 2020-03-27 01:24:34 -04:00