Iciclecreek.Azure.Storage.SQLite
2.0.3
dotnet add package Iciclecreek.Azure.Storage.SQLite --version 2.0.3
NuGet\Install-Package Iciclecreek.Azure.Storage.SQLite -Version 2.0.3
<PackageReference Include="Iciclecreek.Azure.Storage.SQLite" Version="2.0.3" />
<PackageVersion Include="Iciclecreek.Azure.Storage.SQLite" Version="2.0.3" />
<PackageReference Include="Iciclecreek.Azure.Storage.SQLite" />
paket add Iciclecreek.Azure.Storage.SQLite --version 2.0.3
#r "nuget: Iciclecreek.Azure.Storage.SQLite, 2.0.3"
#:package Iciclecreek.Azure.Storage.SQLite@2.0.3
#addin nuget:?package=Iciclecreek.Azure.Storage.SQLite&version=2.0.3
#tool nuget:?package=Iciclecreek.Azure.Storage.SQLite&version=2.0.3
![]()
Iciclecreek.Azure.Storage.SQLite
A SQLite-backed drop-in replacement for Azure.Storage.Blobs, Azure.Data.Tables, and Azure.Storage.Queues clients. Use the same Azure SDK types in tests and local development without Azurite or a live Azure account.
All data is stored in a single .db file -- portable, atomic, and easy to manage.
Installation
dotnet add package Iciclecreek.Azure.Storage.SQLite
Usage
Blobs
using Iciclecreek.Azure.Storage.SQLite.Blobs;
var blobService = new SqliteBlobServiceClient(@"C:\temp\storage.db");
BlobContainerClient container = blobService.GetBlobContainerClient("my-container");
await container.CreateIfNotExistsAsync();
BlobClient blob = container.GetBlobClient("hello.txt");
await blob.UploadAsync(BinaryData.FromString("Hello, World!"));
var result = (await blob.DownloadContentAsync()).Value;
Console.WriteLine(result.Content.ToString()); // "Hello, World!"
Tables
using Iciclecreek.Azure.Storage.SQLite.Tables;
var tableService = new SqliteTableServiceClient(@"C:\temp\storage.db");
TableClient table = tableService.GetTableClient("people");
await table.CreateIfNotExistsAsync();
await table.AddEntityAsync(new TableEntity("users", "alice") { ["Name"] = "Alice" });
var entity = (await table.GetEntityAsync<TableEntity>("users", "alice")).Value;
Queues
using Iciclecreek.Azure.Storage.SQLite.Queues;
var queueService = new SqliteQueueServiceClient(@"C:\temp\storage.db");
QueueClient queue = queueService.GetQueueClient("tasks");
queue.Create();
queue.SendMessage("do the thing");
var msg = queue.ReceiveMessage().Value;
Console.WriteLine(msg.Body.ToString()); // "do the thing"
Swap in via dependency injection
Every Sqlite* client inherits from its Azure SDK base type:
// Production
services.AddSingleton<BlobServiceClient>(
new BlobServiceClient(connectionString));
// Test
services.AddSingleton<BlobServiceClient>(
new SqliteBlobServiceClient("test.db"));
Related Packages
| Package | Description |
|---|---|
| Iciclecreek.Azure.Storage.Memory | Thread-safe in-memory implementation (fastest, no I/O) |
| Iciclecreek.Azure.Storage.FileSystem | Filesystem-backed implementation (files on disk) |
| Iciclecreek.Azure.Storage.Server | ASP.NET Core REST API server on top of any provider |
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
-
net10.0
- Azure.Data.Tables (>= 12.11.0)
- Azure.Storage.Blobs (>= 12.28.0)
- Azure.Storage.Queues (>= 12.26.0)
- Microsoft.Data.Sqlite (>= 10.0.8)
-
net8.0
- Azure.Data.Tables (>= 12.11.0)
- Azure.Storage.Blobs (>= 12.28.0)
- Azure.Storage.Queues (>= 12.26.0)
- Microsoft.Data.Sqlite (>= 8.0.13)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Iciclecreek.Azure.Storage.SQLite:
| Package | Downloads |
|---|---|
|
LottaDB.SQLite
SQLite storage provider for LottaDB. Adds UseSQLite() extension method for local development with a single portable .db file. |
GitHub repositories
This package is not used by any popular GitHub repositories.