{"repo":"studoverse/katerbase","free":true,"listed":false,"github":"https://github.com/studoverse/katerbase","clone":"git clone https://github.com/studoverse/katerbase.git","description":"Kotlin DSL for MongoDB: Serving finest data from MongoDB to Kotlin","language":"Kotlin","stars":21,"topics":["kotlin","mongodb","kotlin-library"],"license":"Apache-2.0","category":"saas-starters-boilerplates","readme_excerpt":"Katerbase Katerbase [keɪtərbeɪs] is a Kotlin wrapper for the MongoDB Java Driver and offers idiomatic Kotlin support for MongoDB. Its goal is to write concise and simple MongoDB queries without any boilerplate or ceremony. IDE autocompletion and type safety allow you to start writing MongoDB queries, even if you haven't used the MongoDB query syntax before. Katerbase has object mapping built in, so queried data from MongoDB get deserialized by Jackson into Kotlin classes. Quick start The following example showcases how MongoDB documents can be queried, inserted and modified from Kotlin: Check out the Katerbase read operations and write operations sections for all supported MongoDB operations and examples. Database Setup A MongoDB database with all its collections is defined in code. When creating a Katerbase MongoDatabase object, the connection URI must be specified along with the collection definitions: Use the clientSettings argument of the MongoDatabase constructor to configure the MongoClientSettings of the mongo-java-driver, see MongoDB connection settings The com.moshbit.katerbase.MongoDatabase has an internalDatabase: com.mongodb.client.MongoDatabase field that exposes the MongoDatabase of the mongo-java-driver to allow all operations that Katerbase doesn't support yet. Collection Setup Each MongoDB database consists of multiple MongoDB collections. To create a collection, add the MongoDB collection name and the corresponding Kotlin model class to the collection constr","default_branch":null,"files":null,"tree":[],"storefront":"/r/studoverse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/studoverse/katerbase/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}