You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b793bca
Browse filesBrowse the repository at this point in the historyBrowse files
-**ADO.NET Utilities**: Provides helpers for commands, parameters, readers, data adapters, schema inspection, and common SQLite operations.
17
-
-**Schema Versioning**: Supports controlled database schema updates through the existing converter-based mechanism.
17
+
-**Database Migrations**: Applies ordered schema and data migrations transactionally, records migration history with optional version metadata, and validates that the applied history matches the configured migration sequence.
The callback is responsible for committing the transaction or explicitly rolling it back when the operation completes normally. If the callback throws while the transaction is still active, the transaction is rolled back automatically without replacing the original exception with a rollback error.
Migrations are applied in the order in which they are registered. Applied migrations are recorded in the `__nuext_migrations` table together with their application time and optional version information. The complete migration batch is executed within a synchronized transaction and is rolled back if any migration fails.
79
+
51
80
### Commonly Used Types
52
81
53
-
-**`System.Data.SQLite.SQLiteDalBase`**: Base class for SQLite-specific Data Access Layer (DAL) operations.
54
82
-**`System.Data.SQLite.SQLiteDbConnection`**: Wraps SQLite connections with synchronized process-local access, transaction coordination, and utilities for common database operations.
55
-
-**`System.Data.SQLite.SQLiteDbContext`**: Manages connection state and transaction lifetime, with optional validation that the connection lock remains held for the lifetime of the context.
56
-
-**`System.Data.SQLite.SQLiteDbConverter`**: Base class for applying updates to the SQLite database schema.
57
83
-**`System.Data.SQLite.SQLiteDbTransaction`**: Wraps SQLite transactions with explicit state tracking, commit and rollback operations, and transaction lifetime diagnostics.
84
+
-**`System.Data.SQLite.SQLiteDbContext`**: Manages connection state and transaction lifetime, with optional validation that the connection lock remains held for the lifetime of the context.
85
+
-**`System.Data.SQLite.SQLiteDalBase`**: Base class for SQLite-specific Data Access Layer (DAL) operations.
86
+
-**`System.Data.SQLite.SQLiteDbMigration`**: Base class for defining ordered SQLite schema and data migrations.
87
+
-**`System.Data.SQLite.SQLiteDbMigrationContext`**: Provides the execution context used by SQLite migrations.
58
88
59
89
### Installation
60
90
61
-
You can install `NuExt.System.Data.SQLite` via[NuGet](https://www.nuget.org/):
91
+
Via[NuGet](https://www.nuget.org/):
62
92
63
93
```sh
64
94
dotnet add package NuExt.System.Data.SQLite
65
95
```
66
96
67
-
Or through the Visual Studio package manager:
97
+
Or via Visual Studio:
68
98
69
99
1. Go to `Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution...`.
70
100
2. Search for `NuExt.System.Data.SQLite`.
@@ -74,10 +104,20 @@ Or through the Visual Studio package manager:
74
104
75
105
For examples of how to use these classes, see the [samples](samples). These samples provide practical guidance on implementing the library's features in real-world scenarios.
Contributions are welcome! Feel free to submit issues, fork the repository, and send pull requests. Your feedback and suggestions for improvement are highly appreciated.
119
+
Issues and PRs are welcome. Keep changes minimal and performance-conscious.
80
120
81
-
###License
121
+
## License
82
122
83
-
Licensed under the MIT License. See the LICENSE file for details.
<Description>High‑performance SQLite data access utilities for .NET, providing thread‑safe connection handling, reliable transaction management, and a consistent DAL foundation. Includes context and converter abstractions to simplify schema updates, coordinate concurrent operations, and ensure predictable behavior across SQLite’s locking model.</Description>
7
+
<Description>High-performance SQLite data access utilities for .NET, providing synchronized process-local connection access, explicit transaction management, a consistent DAL foundation, and transactional database migrations with validated history tracking.</Description>
0 commit comments