2022-12-03 12:04:12 +00:00
|
|
|
using SqlKata;
|
2021-10-15 06:27:38 -04:00
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
namespace PluralKit.Core;
|
2021-10-15 06:27:38 -04:00
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
public partial class ModelRepository
|
2021-10-15 06:27:38 -04:00
|
|
|
{
|
2022-12-03 12:04:12 +00:00
|
|
|
public Task<Counts> GetStats() => _db.QueryFirst<Counts>(new Query("info"));
|
2021-10-15 06:27:38 -04:00
|
|
|
|
2021-11-26 21:10:56 -05:00
|
|
|
public class Counts
|
|
|
|
{
|
|
|
|
public int SystemCount { get; }
|
|
|
|
public int MemberCount { get; }
|
|
|
|
public int GroupCount { get; }
|
|
|
|
public int SwitchCount { get; }
|
|
|
|
public int MessageCount { get; }
|
2021-10-15 06:27:38 -04:00
|
|
|
}
|
|
|
|
}
|