Commit Graph

23 Commits

Author SHA1 Message Date
Scoder12 7fd3a49f09 Add back duplicate sync code
For performance and my sanity, its actually easier to just have duplicate code rather than try fancy async stuff
2020-08-10 18:58:06 -07:00
Scoder12 b1d525b015 Add do_raise to AsyncJSONKey __slots__ 2020-08-10 15:10:03 -07:00
Scoder12 1c4c7c069f Fix _async2sync to pass a correct self value
Initialize a _super variable in __init__ which is an instance of the async base class and is used as the self argument to async methods so that the class can await internal methods
2020-08-10 15:09:40 -07:00
Scoder12 128eef516f Add new raises sections in docstring 2020-08-05 19:23:58 -07:00
Scoder12 3a40311844 Add new raises kwarg in JSONKey 2020-08-05 18:37:28 -07:00
Scoder12 ea8301205e Don't unasync JSONKey internal methods because they are awaited 2020-08-05 15:58:16 -07:00
Scoder12 7d6f45be6c Pass async db to async to synced JSONKey which expects it 2020-08-05 15:51:35 -07:00
Scoder12 ab79581905 Use nest_asyncio to fix async to sync function 2020-08-05 15:48:37 -07:00
Scoder12 69832079d6 Make ReplitDb a subclass of AsyncReplitDb 2020-08-05 15:31:46 -07:00
Scoder12 75f09b90f5 Add async conversions for all coroutines 2020-08-05 14:12:49 -07:00
Scoder12 b60a027225 Switch regular string to fstring, reorder imports 2020-08-04 16:44:56 -07:00
Scoder12 9cf5c102ca Overhaul async and sync code
Add new _async2sync function to copy async code into a sync class
2020-08-04 16:30:26 -07:00
Scoder12 b0bce695cd Initial code for switch to async 2020-08-04 13:25:26 -07:00
Codemonkey51 ab597c4ec3 fix liniting
fix as much lining as i can
2020-08-03 17:50:18 -07:00
Codemonkey51 a6c4d7aad0 one other commit 2020-08-03 16:59:58 -07:00
Codemonkey51 b90db79f96 added async :D 2020-08-03 16:59:36 -07:00
Scoder12 a51b95a4ba Fix type annotation on items method 2020-07-28 16:08:25 -07:00
Scoder12 855274e322 Add items method to database client 2020-07-28 16:05:24 -07:00
Scoder12 b6124e35a1 Fix missing docstring data 2020-07-27 15:03:48 -07:00
Scoder12 777c9a0c70 Don't crash when imported but DB url is not present 2020-07-27 14:46:04 -07:00
Scoder12 5190b8a9a6 Remove whitespace from blank line 2020-07-27 14:00:07 -07:00
Scoder12 69eae60645 Docstring fixes 2020-07-27 13:57:37 -07:00
Scoder12 83ec541343 Initial commit 2020-07-27 12:01:38 -07:00