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
                    
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="Custom_In-Memory_Database" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Custom_In-Memory_Database" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Custom_In-Memory_Database" />
                    
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 Custom_In-Memory_Database --version 1.1.0
                    
#r "nuget: Custom_In-Memory_Database, 1.1.0"
                    
#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.
#addin nuget:?package=Custom_In-Memory_Database&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Custom_In-Memory_Database&version=1.1.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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