quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.58k stars 2.63k forks source link

Kmongo for Quarkus #16354

Closed yoobi closed 2 years ago

yoobi commented 3 years ago

Describe the extension

Kmongo is a really good toolkit for mongo on Kotlin

it supports aggregation and lookup which panache don't.

Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).

Configuration suggestion

# Add your application.properties here, if applicable.
quarkus.mongodb.connection-string=URL
quarkus.mongodb.database=database

Additional context

(Add any other context about the proposal here.)

quarkus-bot[bot] commented 3 years ago

/cc @evanchooly, @loicmathieu

geoand commented 3 years ago

Sounds like a candidate for the Quarkiverse

loicmathieu commented 3 years ago

We aready have a MongoDB with Panache extension for Kotlin (not yet documented) so our prefered way to simplify MongoDB with Kotlin is to use this one.

Note that as Kmongo uses extension method it should not need a tight integration with Quarkus so it should works easily on JVM mode with ou Quarkus MongoDB Client extension. Not sure for native mode.

yoobi commented 3 years ago

I have tried using Panache and it's nice for simple query, right now I'm trying to do aggregation, lookup and such but Panache doesn't support this.

Then it's mandatory going back and forth between mongodb-client (with Cursors) and panache while Kmongo can do everything Panache does and more.

evanchooly commented 2 years ago

I'm going to make the executive decision to close this as won't fix. We have not only panache support but also quarkiverse-morphia for a more robust ODM solution. While community contributions are always welcome, this isn't one the quarkus team will pursue at this point.