{"id":16368154,"url":"https://github.com/bfren/rqlite","last_synced_at":"2026-02-17T20:01:25.615Z","repository":{"id":179731239,"uuid":"664037900","full_name":"bfren/rqlite","owner":"bfren","description":"Rqlite client for .NET.","archived":false,"fork":false,"pushed_at":"2026-02-11T15:00:53.000Z","size":8897,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-11T22:52:33.790Z","etag":null,"topics":["csharp","dotnet","rqlite"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"bfren","patreon":"bfren"}},"created_at":"2023-07-08T18:47:13.000Z","updated_at":"2026-02-11T14:58:25.000Z","dependencies_parsed_at":"2026-02-11T17:01:00.472Z","dependency_job_id":null,"html_url":"https://github.com/bfren/rqlite","commit_stats":null,"previous_names":["bfren/rqlite"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/bfren/rqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Frqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Frqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Frqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Frqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfren","download_url":"https://codeload.github.com/bfren/rqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfren%2Frqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29556406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","rqlite"],"created_at":"2024-10-11T02:51:50.965Z","updated_at":"2026-02-17T20:01:25.590Z","avatar_url":"https://github.com/bfren.png","language":"C#","funding_links":["https://github.com/sponsors/bfren","https://patreon.com/bfren"],"categories":[],"sub_categories":[],"readme":"# Rqlite .NET Client\n\n![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/bfren/rqlite?include_prereleases\u0026label=Version) ![Nuget](https://img.shields.io/nuget/dt/rqlite?label=Downloads) ![GitHub](https://img.shields.io/github/license/bfren/rqlite?label=Licence)\n\n[![Test](https://github.com/bfren/rqlite/actions/workflows/test.yml/badge.svg)](https://github.com/bfren/rqlite/actions/workflows/test.yml) ![Publish](https://github.com/bfren/rqlite/workflows/Publish/badge.svg)\n\nUnofficial .NET client for [Rqlite](https://rqlite.io), download [NuGet package](https://nuget.org/packages/rqlite).\n\nDocumentation (including API explorer) is available [here](https://bfren.github.io/rqlite).\n\n## Features\n\n- Fully asynchronous throughout\n- Configure multiple named connections in settings\n- Execute (e.g. INSERT), Query and Scalar support\n- Return query results as objects\n- Use parameters with queries\n- Support for transactions and multiple statements\n\n## Getting Started\n\nThe simplest way to start testing is to use [Docker](https://docker.com):\n\n```bash\n# in a temporary directory of your choice\n$ git checkout https://github.com/bfren/rqlite .\n$ chmod +x run.sh\n$ ./run.sh\n\n# in a new terminal\n$ dotnet run --project apps/ReadmeApp\n```\n\nThis will execute the code below (taken from ReadmeApp's `Project.cs` file).  You can see additional options and code in the ConsoleApp project.\n\n```csharp\n// register Rqlite with dependency injection\nvar (app, log) = Jeebs.Apps.Host.Create(args, (ctx, services) =\u003e services.AddRqlite());\n\n// get IRqliteClientFactory instance\nvar factory = app.Services.GetRequiredService\u003cIRqliteClientFactory\u003e();\n\n// create default IRqliteClient, listening on http://localhost:4001\nusing var client = factory.CreateClient();\n\n// create a table\nawait client.ExecuteAsync(\"DROP TABLE IF EXISTS foo\");\nawait client.ExecuteAsync(\"CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT, age INTEGER)\");\n\n// 0: insert a row using parameters\nvar sql0 = \"INSERT INTO foo(name, age) VALUES(:name, :age)\";\nvar param0 = new { name = \"Fred\", age = 42 };\nvar query0 = await client.ExecuteAsync(sql0, param0);\nquery0.Audit(\n\tfFail: e =\u003e log.Err(e.Message),\n\tfOk: x =\u003e Console.WriteLine(\"Inserted record {0}.\", x.Select(r =\u003e r.LastInsertId).First())\n);\n// Output: 'Inserted record 1.'\n\n// 1: query the database using parameters\nvar sql1 = \"SELECT * FROM foo WHERE name = :name\";\nvar param1 = new { name = \"Fred\" };\nvar query1 = await client.QueryAsync\u003cPerson\u003e(sql1, param1);\nquery1.Audit(\n\tfFail: e =\u003e log.Err(e.Message),\n\tfOk: x =\u003e Console.WriteLine(\"{0} is {1}.\", x.First().Name, x.First().Age)\n);\n// Output: 'Fred is 42.'\n\n// 2: get value as a simple type\nvar sql2 = \"SELECT age FROM foo WHERE name = :name\";\nvar query2 = await client.GetScalarAsync\u003cint\u003e(sql2, param1);\nquery2.Audit(\n\tfFail: e =\u003e log.Err(e.Message),\n\tfOk: x =\u003e Console.WriteLine(\"Fred is {0}.\", x)\n);\n// Output: 'Fred is 42.'\n\n// 3: map results to a complex type\nvar query3 = await client.QueryAsync\u003cPerson\u003e(sql1, param1);\nquery3.Audit(\n\tfFail: e =\u003e log.Err(e.Message),\n\tfOk: x =\u003e Console.WriteLine(\"Found {0}.\", x.First())\n);\n// Output: 'Found Person { Id = 1, Name = Fred, Age = 42 }.'\n\n// 4: insert multiple rows at once using tuples\nvar param2 = new { name = \"Bella\", age = 31 };\nvar param3 = new { name = \"Alex\", age = 59 };\nvar query4 = await client.ExecuteAsync(\n\t(sql0, param2),\n\t(sql0, param3)\n);\nquery4.Audit(\n\tfFail: e =\u003e log.Err(e.Message),\n\tfOk: x =\u003e Console.WriteLine(\"Inserted records {0}.\", string.Join(\", \", x.Select(r =\u003e r.LastInsertId)))\n);\n// Output: 'Inserted records 2, 3.'\n\ninternal sealed record Person(int Id, string Name, int Age);\n```\n\n## Licence\n\n\u003e [MIT](https://mit.bfren.dev/2023)\n\n## Copyright\n\n\u003e Copyright (c) 2023-2026 [bfren](https://bfren.dev) (unless otherwise stated)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfren%2Frqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfren%2Frqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfren%2Frqlite/lists"}