kodein-leveldb-inmemory

LevelDB in-memory for testing

License

License

MIT
Categories

Categories

Data
GroupId

GroupId

org.kodein.db
ArtifactId

ArtifactId

kodein-leveldb-inmemory-metadata
Last Version

Last Version

0.6.1-beta
Release Date

Release Date

Type

Type

module
Description

Description

kodein-leveldb-inmemory
LevelDB in-memory for testing
Project URL

Project URL

http://kodein.org
Source Code Management

Source Code Management

https://github.com/Kodein-Framework/Kodein-DB

Download kodein-leveldb-inmemory-metadata

Dependencies

compile (2)

Group / Artifact Type Version
org.kodein.db : kodein-leveldb-api-metadata jar 0.6.1-beta
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.31

Project Modules

There are no modules declared in this project.

KODEIN-DI

Kodein-DB is a Kotlin/Multiplatform embedded NoSQL database that works on JVM, Android, Kotlin/Native and iOS. It is suited for client or mobile applications.

Kodein-DB allows you to:

  • Easily store, retrieve and query kotlin objects.
  • Stop caring about schema definitions.
  • Easily set up a new project.

Kodein-DB is a good choice because it:

  • proposes a very simple and readable DSL.
  • integrates nicely with Android and iOS.
  • offers very good performance.
  • is just Kotlin!

CAUTION: Under no circumstances should it be used in a server!

IMPORTANT

Kodein-DB is in beta.

Although, we do use Kodein-DB in production, this means we cannot ensure the library's correctness and stability. Therefore, we ask that you first try Kodein-DB in non-critical applications, and report any mis-behaviour you may encounter.

Example

.A simple example

val db = DB.open("path/to/db")

db.put(User("John", "Doe"))
db.put(User("Jane", "Doe"))
db.put(User("Someone", "Else"))

val does = db.find<User>().byIndex("lastName", "Doe").models()
println(does.joinToString()) // Jane, John

Kodein-DB documentation

Support

Contribute

Contributions are very welcome and greatly appreciated! The great majority of pull requests are eventually merged.

To contribute, simply fork the project on Github, fix whatever is iching you, and submit a pull request!

We are sure that this documentation contains typos, inaccuracies and languages error. If you feel like enhancing this document, you can propose a pull request that modifies the documentation documents. (Documentation is auto-generated from those).

org.kodein.db

Versions

Version
0.6.1-beta
0.6.0-beta