-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Code cleanup and fixing compilation warnings related to nullability * Remove unused imports
- Loading branch information
Showing
4 changed files
with
21 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using RqliteDotnet.Dto; | ||
|
||
namespace RqliteDotnet; | ||
|
||
public interface IRqliteOrmClient : IRqliteClient | ||
{ | ||
/// <summary> | ||
/// Query Rqlite DB and return result as an instance of T | ||
/// </summary> | ||
/// <param name="query">Query to execute</param> | ||
/// <typeparam name="T">Type of result object</typeparam> | ||
/// <returns></returns> | ||
Task<List<T>> Query<T>(string query) where T: new(); | ||
|
||
Task<List<U>> QueryParams<T, U>(string query, CancellationToken cancellationToken, params T[] qps) | ||
where T: QueryParameter | ||
where U : new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters