Skip to content
Discussion options

You must be logged in to vote

Actually nitrite 4.x has been heavily refactored from 3.x. The jackson serialization functionality has been separated out in a different library - nitrite-jackson-mapper. So you have to add this dependency in your java project.

MVStoreModuleBuilder builder = MVStoreModule.withConfig();
builder.compress(true);
builder.autoCommit(false);
builder.filePath(fileName);

MVStoreModule storeModule = builder.build();
NitriteBuilder nitriteBuilder = Nitrite.builder()
    .loadModule(new JacksonMapperModule())
    .loadModule(storeModule);

Nitrite db = nitriteBuilder.openOrCreate("test-user", "test-password");

If you are using kotlin, you should use potassium-nitrite library instead of nitrite, whi…

Replies: 0 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@ThraaxSession
Comment options

Comment options

You must be logged in to vote
1 reply
@ThraaxSession
Comment options

Answer selected by ThraaxSession
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
nitrite-java Nitrite for Java
2 participants