mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Split message/proxy data up in MessageContext and ProxyMember
This commit is contained in:
parent
ba441a15cc
commit
3d62a0d33c
18 changed files with 296 additions and 499 deletions
|
|
@ -308,4 +308,13 @@ namespace PluralKit.Core
|
|||
parameter.Value = (long) value;
|
||||
}
|
||||
}
|
||||
|
||||
public static class DatabaseExt
|
||||
{
|
||||
public static async Task<T> Execute<T>(this DbConnectionFactory db, Func<IDbConnection, Task<T>> func)
|
||||
{
|
||||
await using var conn = await db.Obtain();
|
||||
return await func(conn);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue