Commit Graph

16 Commits

Author SHA1 Message Date
2121749238 rewrite: Fix ORM typing issues. 2022-11-11 08:03:13 +02:00
872e5fd71f rewrite: Update data ORM.
Fix parsing bug in Update Query.
Fix parsing bug in Insert Query.

Add mapping interface to Model.
Implement OrderMixin, with ORDER and NULLS Enums.
Add `result` field to Query.
2022-11-07 16:07:27 +02:00
069c032e02 rewrite: New data ORM. 2022-11-02 07:23:51 +02:00
60e59246ab fix (Table): Return method after save_query. 2022-04-26 03:24:38 +03:00
6f9c8b7138 gems: Generalise gem transaction table.
Updates gem audit table for more generality.
Fixes issue with `Row._refresh()`.
Data migration v11 -> v12.
Remove `set_gems` (not needed due to gem module refactor).
2022-04-02 11:40:42 +03:00
73ae53f1b0 fix (data): Incorrect cache selection. 2022-01-28 16:20:25 +02:00
Harsha Raghu
6e005cf042 [Data-Interface] Allow single column selection 2022-01-15 16:02:52 +05:30
25e22c07d0 sharding (tickets): Filter expiring tickets.
Only expire tickets which are on this shard.
`THIS_SHARD` application is a no-op when unsharded.
2021-12-22 13:20:27 +02:00
20697c4823 sharding (core): Add base sharding support.
Add `meta.args` for command line argument access.
Add command line argument support for shard number.
Add shard count to config file.
Add `meta.sharding` exposing shard properties.
Add shard number to logging methods.
Add shard number to data appid.
2021-12-22 11:28:43 +02:00
d498673020 sharding (data): Add SHARDID condition. 2021-12-22 10:34:34 +02:00
ac71c4da9b (sessions): Add study_time_since function.
New `study_time_since` database function from session history.
Add `Lion.timezone`.
Add `Lion.day_start`.
Add `Lion.studied_today`.
Made `Table.queries` an instance variable.
Renamed the session channel types.
2021-11-29 13:33:21 +02:00
73cceb0412 (Core data): Restart when DB is inaccessible. 2021-09-21 16:06:30 +03:00
4229fe8b18 (Data): Small extensions to core data interfaces.
Add `LEQ` condition type.
Ensure that batch updates don't fire with nothing to update.
Add `cast_row` to `update_many` for handling typed `NULL`s.
2021-09-19 09:54:08 +03:00
0183b63c55 Data system refactor and core redesign for public.
Redesigned data and core systems to be public-capable.
2021-09-12 11:04:49 +03:00
459a728968 Core user data and leaderboard commands.
Added flexibility to data `update_where`.
Added interactive utils, with improved pager.
Added user data table, with caching and transactional interface.
Added `topcoins` command to `Economy`
Added `top` command to `Study`
2021-08-26 22:34:46 +03:00
05cb9650ee Core bot framework 2021-08-25 22:56:45 +03:00