Skip to content

Latest commit

 

History

History
 
 

potassium-nitrite

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Potassium Nitrite

A kotlin extension for Nitrite database. It aims to streamline the usage of nitrite with kotlin by leveraging its language features like extension function, builders, infix functions etc.

How To Install

To use this add required dependencies:

Maven

<dependencies>
    <dependency>
        <groupId>org.dizitart</groupId>
        <artifactId>potassium-nitrite</artifactId>
    </dependency>
</dependencies>

Gradle

implementation 'org.dizitart:potassium-nitrite'

How To Use

Initialize Nitrite Database

val db = nitrite("user", "password") {
    loadModule(MVStoreModule(fileName))
    loadModule(module(KNO2JacksonMapper()))
    loadModule(module(NitriteTextIndexer(UniversalTextTokenizer())))
}

More details can be found in the documentation.