Giter Club home page Giter Club logo

ironleveldb's Introduction

IronLeveldb

NuGet version VSTS

A leveldb implementation in C#, targeting .NET Standard 1.3 (Frameworks 4.6+, Core 1.0+).

This project is still under hard working and was built to read leveldb instances on Azure Blob Storage originally, thus, only partial of READ functions were implemented at the moment.

Build the project

The main project can be built using dotnet on any platform, but the test project is now targeting net46 due to some dependencies, which can only build and run on Windows.

git clone https://github.com/tg123/IronLeveldb.git

dotnet restore
dotnet build

dotnet test IronLeveldb.Test\IronLeveldb.Test.csproj

How to use

  • Install

    Install-Package IronLeveldb -Pre 
    
  • Open a local directory

    var db = IronLeveldbBuilder.BuildFromPath(dbpath)
    
  • Open a directory on Azure Blob

    var storageAccount = CloudStorageAccount.Parse(
         CloudConfigurationManager.GetSetting("StorageConnectionString"));
    
    var blobClient = storageAccount.CreateCloudBlobClient();
    
    var container = blobClient.GetContainerReference("mycontainer");
    
    var folder = container.GetDirectoryReference("leveldb_directory");
    var db = new IronLeveldbOptions
    {
         Storge = new AzureBlobFolderStorage(folder)
    }.Build()
    

    More info about blob storage at https://docs.microsoft.com/en-us/azure/storage/storage-dotnet-how-to-use-blobs

Roadmap

// TBD

ironleveldb's People

Contributors

dependabot[bot] avatar tg123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ironleveldb's Issues

Cool Project !

A pure C implementation can avoid the performance penalty of PInvoke and byte[] copies from native to managed. Thanks for your great work!

And could you tell me how can I implement SeekLast() method ?

        return SeekToRestartPoint(_numRestarts - 1);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.