Simple.Sqlite 0.4.79

There is a newer version of this package available.
See the version list below for details.
dotnet add package Simple.Sqlite --version 0.4.79
                    
NuGet\Install-Package Simple.Sqlite -Version 0.4.79
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Simple.Sqlite" Version="0.4.79" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Simple.Sqlite" Version="0.4.79" />
                    
Directory.Packages.props
<PackageReference Include="Simple.Sqlite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Simple.Sqlite --version 0.4.79
                    
#r "nuget: Simple.Sqlite, 0.4.79"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Simple.Sqlite@0.4.79
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Simple.Sqlite&version=0.4.79
                    
Install as a Cake Addin
#tool nuget:?package=Simple.Sqlite&version=0.4.79
                    
Install as a Cake Tool

.NET Core NuGet

SqliteWrapper

A very simple Sqlite wrapper to plug spiders with it

How to use:

// Create a new instance
SqliteDB db = new SqliteDB("myStuff.db");

// Create a DB Schema
db.CreateTables()
  .Add<MyData>()
  .Commit();

var d = new MyData()
{
    //fill your object
};
// call INSERT
db.Insert(d);

// use GetAll to retrieve all data
var allData = db.GetAll<MyData>();
// Use queries to get back data
var allBobs = db.ExecuteQuery<MyData>("SELECT * FROM MyData WHERE MyName = @name ", new { name = "bob" });

What this library automates ?

Auto fill parameters

This library provides a Query operation similar to Dapper, it can return a query as an Enumerable of your class

var allData = db.GetAll<MyData>();

And supports objects (even anonymous) as parameters

var allBobs = db.ExecuteQuery<MyData>("SELECT * FROM MyData WHERE MyName = @name ", new { name = "bob" });

Also, it supports easy Insertion

var d = new MyData()
{
    //fill your object
};
// call INSERT
db.Insert(d);

And a VERY efficient, transaction based BulkInsertion

MyData[] lotsOfData = getLotsOfData();

// call INSERT
db.BulkInsert(lotsOfData);

Tip: For multi-million insertion, 5k blocks are a good start point

Migration

This library has a very simple Migration tah can:

  • Create new tables
  • Add columns to existing tables

To update your db schema just call CreateTables() and add your classes with Add<T> and then Commit()

// Create a new instance
SqliteDB db = new SqliteDB("myStuff.db");

// Create a DB Schema
 var migrationResult = db.CreateTables()
                         .Add<MyData>()
                         .Commit();

A TableCommitResult will be returned with all changes made

This command will not migrate DATA only the schema

You can make changes on the table definition before it commits with:

db.CreateTables()
  .Add<MyData>()
  .ConfigureTable(t => { /* change last added table here */ })
  .Add<NextTable>()
  .Commit();
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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 was computed.  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 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Simple.Sqlite:

Package Downloads
RafaelEstevam.Simple.Spider.SqliteStorage

Sqlite-based storage engine to the SimpleSpider See examples and documentation on the GitHub page

Simple.Finance

Simple C# personal finance manager

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.4.4 612 7/23/2025
1.4.3 431 4/8/2025
1.4.2 278 8/26/2024
1.4.1 386 6/30/2024
1.4.0 181 6/30/2024 1.4.0 is deprecated because it has critical bugs.
1.3.2 156 6/18/2024
1.3.1 204 5/6/2024
1.2.0 190 3/26/2024
1.1.0 180 1/22/2024
1.0.6 244 11/28/2023
1.0.5 484 8/26/2023
1.0.4 477 6/23/2023
1.0.3 259 5/21/2023
1.0.2 356 3/9/2023
1.0.1 402 1/27/2023
1.0.0.4-rc 232 12/20/2022
1.0.0.3-rc 227 11/23/2022
1.0.0.2-rc 358 11/23/2022 1.0.0.2-rc is deprecated because it has critical bugs.
1.0.0.1-rc 228 11/16/2022
0.9.1.3 479 11/23/2022
0.9.1.2 506 11/23/2022 0.9.1.2 is deprecated because it has critical bugs.
0.9.1.1 452 11/2/2022
0.9.1 528 8/6/2022
0.9.0.1 545 7/29/2022
0.8.5.4 685 2/14/2022
0.8.5.3 559 2/8/2022
0.8.5.2 563 1/23/2022
0.8.5.1 394 1/8/2022
0.8.5 415 1/1/2022
0.8.4.1 401 12/31/2021
0.8.4 1,171 11/20/2021
0.8.3 1,147 11/7/2021
0.8.2-alpha 398 10/8/2021
0.8.1-alpha 344 8/18/2021
0.8.0-alpha 578 8/11/2021 0.8.0-alpha is deprecated because it has critical bugs.
0.7.4.1 522 10/15/2021
0.7.4 510 10/8/2021
0.7.4-alpha 352 8/8/2021
0.7.3 530 8/3/2021
0.7.2 708 7/25/2021
0.6.4 690 5/3/2021
0.6.3 603 5/1/2021 0.6.3 is deprecated because it has critical bugs.
0.6.2 500 4/27/2021
0.6.1 657 3/27/2021
0.5.118 558 3/14/2021
0.5.100 694 1/24/2021
0.4.94 482 1/23/2021
0.4.93 613 1/23/2021 0.4.93 is deprecated because it has critical bugs.
0.4.90 538 1/21/2021
0.4.79 702 1/15/2021
0.4.68 608 1/6/2021
0.4.63 886 12/30/2020
0.4.43 1,010 12/21/2020
0.4.29 775 12/19/2020
0.4.24 925 12/19/2020
0.4.21 1,038 12/19/2020
0.1.1 616 11/5/2020
0.1.0 761 11/5/2020 0.1.0 is deprecated because it has critical bugs.