SingleStoreConnector 1.4.1
dotnet add package SingleStoreConnector --version 1.4.1
NuGet\Install-Package SingleStoreConnector -Version 1.4.1
<PackageReference Include="SingleStoreConnector" Version="1.4.1" />
<PackageVersion Include="SingleStoreConnector" Version="1.4.1" />
<PackageReference Include="SingleStoreConnector" />
paket add SingleStoreConnector --version 1.4.1
#r "nuget: SingleStoreConnector, 1.4.1"
#:package SingleStoreConnector@1.4.1
#addin nuget:?package=SingleStoreConnector&version=1.4.1
#tool nuget:?package=SingleStoreConnector&version=1.4.1
About
SingleStoreConnector is a C# ADO.NET driver for SingleStore.
How to Use
// set these values correctly for your database server
var builder = new SingleStoreConnectionStringBuilder
{
Server = "your-server",
UserID = "database-user",
Password = "P@ssw0rd!",
Database = "database-name",
};
// open a connection asynchronously
await using var connection = new SingleStoreConnection(builder.ConnectionString);
await connection.OpenAsync();
// create a DB command and set the SQL statement with parameters
await using var command = connection.CreateCommand();
command.CommandText = @"SELECT * FROM orders WHERE order_id = @OrderId;";
command.Parameters.AddWithValue("@OrderId", orderId);
// execute the command and read the results
await using var reader = await command.ExecuteReaderAsync();
while (reader.Read())
{
var id = reader.GetInt32("order_id");
var date = reader.GetDateTime("order_date");
// ...
}
ASP.NET
For ASP.NET, use the SingleStoreConnector.DependencyInjection package to integrate with dependency injection and logging.
var builder = WebApplication.CreateBuilder(args);
// use AddSingleStoreDataSource to configure SingleStoreConnector
builder.Services.AddSingleStoreDataSource(builder.Configuration.GetConnectionString("Default"));
var app = builder.Build();
// use dependency injection to get a SingleStoreConnection in minimal APIs or in controllers
app.MapGet("/", async (SingleStoreConnection connection) =>
{
// open and use the connection here
await connection.OpenAsync();
await using var command = connection.CreateCommand();
command.CommandText = "SELECT name FROM users LIMIT 1";
return "Hello World: " + await command.ExecuteScalarAsync();
});
app.Run();
Key Features
- Full support for async I/O
- High performance
- Supports .NET Framework, .NET Core, and .NET 5.0+
Main Types
The main types provided by this library are:
SingleStoreConnection(implementation ofDbConnection)SingleStoreCommand(implementation ofDbCommand)SingleStoreDataReader(implementation ofDbDataReader)SingleStoreBulkCopySingleStoreBulkLoaderSingleStoreConnectionStringBuilderSingleStoreConnectorFactorySingleStoreDataAdapterSingleStoreExceptionSingleStoreTransaction(implementation ofDbTransaction)
Feedback
SingleStoreConnector is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.7.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETFramework 4.8
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.1
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
-
net10.0
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- System.Diagnostics.DiagnosticSource (>= 8.0.1)
-
net8.0
-
net9.0
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SingleStoreConnector:
| Package | Downloads |
|---|---|
|
EntityFrameworkCore.SingleStore
SingleStore database provider for Entity Framework Core. |
|
|
SqlKata.HotChocolatePipeline
Package Description |
|
|
SingleStore.SemanticKernel
SingleStore vector store connector for Microsoft Semantic Kernel and Microsoft.Extensions.VectorData. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.4.1 | 703 | 7/28/2026 | |
| 1.4.0 | 8,066 | 5/26/2026 | |
| 1.3.0 | 1,310,048 | 9/11/2025 | |
| 1.2.0 | 800,766 | 3/27/2025 | |
| 1.1.6 | 305,122 | 11/29/2024 | |
| 1.1.5 | 404 | 11/27/2024 | |
| 1.1.4 | 956,060 | 9/21/2023 | |
| 1.1.3 | 35,330 | 8/4/2023 | |
| 1.1.2 | 789 | 7/25/2023 | |
| 1.1.0 | 47,421 | 4/20/2023 | |
| 1.0.1 | 120,128 | 2/6/2023 | |
| 1.0.0 | 111,750 | 6/10/2022 | |
| 0.1.2-beta | 26,739 | 3/28/2022 |