Overview

Quick overview of the project with basic usage and example.

Inset (https://github.com/slatepowered/insetarrow-up-right) is a work in progress advanced Java 8 datastore framework. It provides straightforward, flexible and fast cached access to databases through, for example, declaring objects.

It currently has support for MongoDB as a datasource and reflection (from data classes) as a data codec provider.

Installation - Gradle

The library is provided for Maven and Gradle through Jitpack, so begin by adding Jitpack as a repository:

repositories {
    maven { url = "https://jitpack.io" }
}

Then, add Inset as a dependency using as a version either a version tag you can find on the releases page (https://github.com/slatepowered/inset/releasesarrow-up-right) or using a commmit ID.

def INSET_VERSION = "<commit id/version>"

dependencies {
    // inset: core module, provides the reflective data objects
    // and all the base classes
    implementation "com.github.slatepowered.inset:inset-core:${INSET_VERSION}"
    // inset: datasource implementation of your choice, in this case mongodb
    implementation "com.github.slatepowered.inset:inset-mongodb:${INSET_VERSION}"
}

Example

Last updated