Iciclecreek.Azure.Storage.SQLite
1.0.1
See the version list below for details.
dotnet add package Iciclecreek.Azure.Storage.SQLite --version 1.0.1
NuGet\Install-Package Iciclecreek.Azure.Storage.SQLite -Version 1.0.1
<PackageReference Include="Iciclecreek.Azure.Storage.SQLite" Version="1.0.1" />
<PackageVersion Include="Iciclecreek.Azure.Storage.SQLite" Version="1.0.1" />
<PackageReference Include="Iciclecreek.Azure.Storage.SQLite" />
paket add Iciclecreek.Azure.Storage.SQLite --version 1.0.1
#r "nuget: Iciclecreek.Azure.Storage.SQLite, 1.0.1"
#:package Iciclecreek.Azure.Storage.SQLite@1.0.1
#addin nuget:?package=Iciclecreek.Azure.Storage.SQLite&version=1.0.1
#tool nuget:?package=Iciclecreek.Azure.Storage.SQLite&version=1.0.1
![]()
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.
Each storage account is a single .db file -- portable, atomic, and easy to manage.
Installation
dotnet add package Iciclecreek.Azure.Storage.SQLite
Usage
Create a provider and account
using Iciclecreek.Azure.Storage.SQLite;
using Iciclecreek.Azure.Storage.SQLite.Blobs;
using Iciclecreek.Azure.Storage.SQLite.Tables;
using Iciclecreek.Azure.Storage.SQLite.Queues;
var provider = new SqliteStorageProvider(@"C:\temp\my-storage");
var account = provider.AddAccount("devaccount"); // creates devaccount.db
Blobs
BlobContainerClient container = SqliteBlobContainerClient.FromAccount(account, "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
TableClient table = SqliteTableClient.FromAccount(account, "people");
await table.CreateIfNotExistsAsync();
await table.AddEntityAsync(new TableEntity("users", "alice") { ["Name"] = "Alice" });
var entity = (await table.GetEntityAsync<TableEntity>("users", "alice")).Value;
Queues
QueueClient queue = SqliteQueueClient.FromAccount(account, "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<BlobContainerClient>(
new BlobContainerClient(connectionString, "images"));
// Test
var provider = new SqliteStorageProvider(testDir);
var account = provider.AddAccount("test");
services.AddSingleton<BlobContainerClient>(
SqliteBlobContainerClient.FromAccount(account, "images"));
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 (2)
Showing the top 2 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. |
|
|
BenchmarkSuite
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.