mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
feat: split out messages table from main database
This commit is contained in:
parent
09ac002d26
commit
bf7747ab34
14 changed files with 119 additions and 84 deletions
|
|
@ -7,15 +7,16 @@ namespace PluralKit.Core;
|
|||
public interface IDatabase
|
||||
{
|
||||
Task ApplyMigrations();
|
||||
Task<IPKConnection> Obtain();
|
||||
Task<IPKConnection> Obtain(bool messages = false);
|
||||
Task Execute(Func<IPKConnection, Task> func);
|
||||
Task<T> Execute<T>(Func<IPKConnection, Task<T>> func);
|
||||
IAsyncEnumerable<T> Execute<T>(Func<IPKConnection, IAsyncEnumerable<T>> func);
|
||||
Task<int> ExecuteQuery(Query q, string extraSql = "", [CallerMemberName] string queryName = "");
|
||||
Task<int> ExecuteQuery(Query q, string extraSql = "", [CallerMemberName] string queryName = "", bool messages = false);
|
||||
|
||||
Task<int> ExecuteQuery(IPKConnection? conn, Query q, string extraSql = "",
|
||||
[CallerMemberName] string queryName = "");
|
||||
|
||||
Task<T> QueryFirst<T>(string q, object param = null, [CallerMemberName] string queryName = "", bool messages = false);
|
||||
Task<T> QueryFirst<T>(Query q, string extraSql = "", [CallerMemberName] string queryName = "");
|
||||
|
||||
Task<T> QueryFirst<T>(IPKConnection? conn, Query q, string extraSql = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue