Skip to content

yagweb/unqlite-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unqlite-net

UnQlite binding for .Net

Sample

UnQLite unqlite = new UnQLite("test.db", UnQLiteOpenModel.Create | UnQLiteOpenModel.ReadWrite);

unqlite.Save("key", "value");           
string value = unqlite.Get("key");      
Contract.Assert(value == "value");
unqlite.Remove("key");

//Batch save
using(var transaction = unqlite.BeginTransaction()) {
    unqlite.Save("key1", "value1");
    unqlite.Save("key2", "value2");
    unqlite.Save("key3", "value3");
}

//GetAll
var data = unqlite.GetAll(CursorWalkDirection.FirstToLast);
var data1 = unqlite.GetAll(CursorWalkDirection.LastToFirst);

unqlite.Close();

Installation

NuGet

https://www.nuget.org/packages/UnQLiteNet/

Install-Package UnQLiteNet

License

Apache 2.0 license.

About

UnQlite binding for .Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%