Custom_In-Memory_Database
1.1.0
dotnet add package Custom_In-Memory_Database --version 1.1.0
NuGet\Install-Package Custom_In-Memory_Database -Version 1.1.0
<PackageReference Include="Custom_In-Memory_Database" Version="1.1.0" />
<PackageVersion Include="Custom_In-Memory_Database" Version="1.1.0" />
<PackageReference Include="Custom_In-Memory_Database" />
paket add Custom_In-Memory_Database --version 1.1.0
#r "nuget: Custom_In-Memory_Database, 1.1.0"
#addin nuget:?package=Custom_In-Memory_Database&version=1.1.0
#tool nuget:?package=Custom_In-Memory_Database&version=1.1.0
Custom In-Memory Database
About
This is a custom in-memory database built for learning purposes as part of a senior project, aiming to follow ACID architecture as closely as possible.
For use cases, it could be used for for simple and inspectable database system in small-scale projects or testing purposes.
It supports additional features such as B-tree indexing and data persistence to disk. Future improvements include support for concurrency and atomic transactions.
Installation
On the command line interface:
dotnet add package Custom_In-Memory_Database
How to Setup
1. Dependency Injection
You can register the in-memory database service in your application by adding DatabaseServiceRegistrar.AddInMemoryDBService(IServiceCollection service);
or
You can implement your own custom IFileManager and ISearchManager and either pass it along as parameters as below. Or if an instance is already registered in the DI container, it will be used.
DatabaseServiceRegistrar.AddInMemoryDBService(IServiceCollection services,ISearchManager searchManager,IFileManager fileManager);
2. Manually creating a Database Instance
Since the database class is public and available, you can directly create a database object and start using it:
var database = new Database(ISearchManager searchManager, IFileManager fileManager);
See Reference Page for documentation
Future Plans
- Concurreny using locks
- Exception handling for when a transaction fails
- More complex queries and reference keys
Acknowledgments
This project uses the BTree library by CodeExMachina, licensed under GPLv3.0.
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 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. |
-
net8.0
- CodeExMachina.BTree (>= 0.2.0)
- Microsoft.Extensions.DependencyInjection (>= 9.0.3)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.1.0 | 157 | 4/7/2025 |