Simple.Sqlite
0.4.63
See the version list below for details.
dotnet add package Simple.Sqlite --version 0.4.63
NuGet\Install-Package Simple.Sqlite -Version 0.4.63
<PackageReference Include="Simple.Sqlite" Version="0.4.63" />
paket add Simple.Sqlite --version 0.4.63
#r "nuget: Simple.Sqlite, 0.4.63"
// Install Simple.Sqlite as a Cake Addin #addin nuget:?package=Simple.Sqlite&version=0.4.63 // Install Simple.Sqlite as a Cake Tool #tool nuget:?package=Simple.Sqlite&version=0.4.63
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 | Versions 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Newtonsoft.Json.Bson (>= 1.0.2)
- System.Data.SQLite.Core (>= 1.0.113.7)
-
net5.0
- Newtonsoft.Json.Bson (>= 1.0.2)
- System.Data.SQLite.Core (>= 1.0.113.7)
NuGet packages (1)
Showing the top 1 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 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.4.2 | 173 | 8/26/2024 | |
1.4.1 | 256 | 6/30/2024 | |
1.4.0 | 133 | 6/30/2024 | |
1.3.2 | 109 | 6/18/2024 | |
1.3.1 | 173 | 5/6/2024 | |
1.2.0 | 156 | 3/26/2024 | |
1.1.0 | 136 | 1/22/2024 | |
1.0.6 | 199 | 11/28/2023 | |
1.0.5 | 423 | 8/26/2023 | |
1.0.4 | 416 | 6/23/2023 | |
1.0.3 | 180 | 5/21/2023 | |
1.0.2 | 276 | 3/9/2023 | |
1.0.1 | 320 | 1/27/2023 | |
1.0.0.4-rc | 149 | 12/20/2022 | |
1.0.0.3-rc | 146 | 11/23/2022 | |
1.0.0.2-rc | 193 | 11/23/2022 | |
1.0.0.1-rc | 146 | 11/16/2022 | |
0.9.1.3 | 394 | 11/23/2022 | |
0.9.1.2 | 374 | 11/23/2022 | |
0.9.1.1 | 368 | 11/2/2022 | |
0.9.1 | 435 | 8/6/2022 | |
0.9.0.1 | 452 | 7/29/2022 | |
0.8.5.4 | 570 | 2/14/2022 | |
0.8.5.3 | 436 | 2/8/2022 | |
0.8.5.2 | 458 | 1/23/2022 | |
0.8.5.1 | 297 | 1/8/2022 | |
0.8.5 | 314 | 1/1/2022 | |
0.8.4.1 | 294 | 12/31/2021 | |
0.8.4 | 1,059 | 11/20/2021 | |
0.8.3 | 777 | 11/7/2021 | |
0.8.2-alpha | 293 | 10/8/2021 | |
0.8.1-alpha | 240 | 8/18/2021 | |
0.8.0-alpha | 400 | 8/11/2021 | |
0.7.4.1 | 413 | 10/15/2021 | |
0.7.4 | 409 | 10/8/2021 | |
0.7.4-alpha | 244 | 8/8/2021 | |
0.7.3 | 434 | 8/3/2021 | |
0.7.2 | 541 | 7/25/2021 | |
0.6.4 | 543 | 5/3/2021 | |
0.6.3 | 439 | 5/1/2021 | |
0.6.2 | 399 | 4/27/2021 | |
0.6.1 | 522 | 3/27/2021 | |
0.5.118 | 455 | 3/14/2021 | |
0.5.100 | 579 | 1/24/2021 | |
0.4.94 | 358 | 1/23/2021 | |
0.4.93 | 410 | 1/23/2021 | |
0.4.90 | 439 | 1/21/2021 | |
0.4.79 | 566 | 1/15/2021 | |
0.4.68 | 487 | 1/6/2021 | |
0.4.63 | 660 | 12/30/2020 | |
0.4.43 | 693 | 12/21/2020 | |
0.4.29 | 565 | 12/19/2020 | |
0.4.24 | 719 | 12/19/2020 | |
0.4.21 | 828 | 12/19/2020 | |
0.1.1 | 488 | 11/5/2020 | |
0.1.0 | 555 | 11/5/2020 |
Paired with commit 238918d
https://github.com/RafaelEstevamReis/SqliteWrapper