PolarbearDB 3.0.0
dotnet add package PolarbearDB --version 3.0.0
NuGet\Install-Package PolarbearDB -Version 3.0.0
<PackageReference Include="PolarbearDB" Version="3.0.0" />
paket add PolarbearDB --version 3.0.0
#r "nuget: PolarbearDB, 3.0.0"
// Install PolarbearDB as a Cake Addin #addin nuget:?package=PolarbearDB&version=3.0.0 // Install PolarbearDB as a Cake Tool #tool nuget:?package=PolarbearDB&version=3.0.0
PolarbearDB
Polarbear is an in memory database designed to be simple and fast to use. The point of it is to be self contained within an application without adding extreme waiting times.
Dependencies
Polarbear only relies upon <a href="https://dotnet.microsoft.com/en-us/">dotnet 7</a> (or higher) to run.
Basic Usage
It is very easy to use Polarbear! you simply import the library into your program:
using Polarbear;
After importing Polarbear you can proceed to create a class in which to store in the database:
/*
the Enterable object contains
an "Id" string that must be
unique to the object. By default
it is set to be a Guid.
*/
class MyData : Enterable
{
int myCustomData { get; set; }
pubic MyData(int num)
{
myCustomData = num;
}
}
We can then create our DB and insert an object into it:
PolarbearDB db = new PolarbearDB();
MyData data = new MyData(5);
data.Id = "Hi!";
db.Insert(data);
Now to query the database for our object we can do this:
MyData query = new MyData(100 /*this doesnt matter when querying by id*/);
data.Id = "Hi!";
MyData obj = db.QueryById(query);
Roadmap
- Implement database wrapper to make scripting possible
- Add threading in order to increase speed
- Incorporate compression in order to increase efficiency
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- CompareNETObjects (>= 4.82.0)
- DeepCopy (>= 1.0.3)
- Newtonsoft.Json (>= 13.0.3)
- Newtonsoft.Json.Bson (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.