https://github.com/rqlite/rqlite-dotnet
.NET client
https://github.com/rqlite/rqlite-dotnet
Last synced: 9 months ago
JSON representation
.NET client
- Host: GitHub
- URL: https://github.com/rqlite/rqlite-dotnet
- Owner: rqlite
- License: mit
- Created: 2022-02-07T20:32:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T19:05:43.000Z (9 months ago)
- Last Synced: 2025-04-21T20:24:07.785Z (9 months ago)
- Language: C#
- Size: 59.6 KB
- Stars: 29
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-dotnet - Rqlite-dotnet - .NET client for rqlite (distributed relational DB based on SQLite) (Database Drivers)
- awesome-dotnet - Rqlite-dotnet - .NET client for rqlite (distributed relational DB based on SQLite) (Database Drivers)
README
# rqlite-dotnet
[](https://www.nuget.org/packages/RqliteDotnet/)


.NET client for rqlite - lightweight distributed database.
## Features
It supports the following features through Data API:
* Execute statements
* Query data
* Parametrized statements/queries
## Example
```csharp
var client = new RqliteClient("http://localhost:4001"); //Assuming you have rqlite running on that port locally
var version = await client.Ping();
var queryResults = await client.Query("select * from foo");
var executeResults = await client.Execute("insert into foo (name) values('test')");
```
There is also a basic ORM client similar to Dapper:
```csharp
public class FooResultDto
{
public int Id { get; set; }
public string Name { get; set; }
}
var rqClient = new RqliteOrmClient("http://localhost:6000");
var queryresults = await rqClient.Query("select * from foo"); //Returns List
```
You can see more examples in unit tests. NB: please report performance problems if any.