mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: use sqlkata for a few more queries
This commit is contained in:
parent
8a727c6e80
commit
b2e4ff38e3
5 changed files with 8 additions and 15 deletions
|
|
@ -1,11 +1,10 @@
|
|||
using Dapper;
|
||||
using SqlKata;
|
||||
|
||||
namespace PluralKit.Core;
|
||||
|
||||
public partial class ModelRepository
|
||||
{
|
||||
public Task<Counts> GetStats()
|
||||
=> _db.Execute(conn => conn.QuerySingleAsync<Counts>("select * from info"));
|
||||
public Task<Counts> GetStats() => _db.QueryFirst<Counts>(new Query("info"));
|
||||
|
||||
public class Counts
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue