mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(apiv2): database changes
This commit is contained in:
parent
fb4aaad19f
commit
dbe040f852
10 changed files with 54 additions and 7 deletions
|
|
@ -18,6 +18,9 @@ namespace PluralKit.Core
|
|||
new { Hid = hid.ToLower(), System = system }
|
||||
);
|
||||
|
||||
public Task<PKMember?> GetMemberByGuid(IPKConnection conn, Guid guid) =>
|
||||
conn.QuerySingleOrDefaultAsync<PKMember?>("select * from members where uuid = @Uuid", new { Uuid = guid });
|
||||
|
||||
public Task<PKMember?> GetMemberByName(IPKConnection conn, SystemId system, string name) =>
|
||||
conn.QueryFirstOrDefaultAsync<PKMember?>("select * from members where lower(name) = lower(@Name) and system = @SystemID", new { Name = name, SystemID = system });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue