SQLDelight but for N1QL

SQLDelight consumes a file full of SQL and generates strongly typed Kotlin code that can execute the SQL.
https://cashapp.github.io/sqldelight/

Would be great to have a way to specify N1QL in a file and generate strongly typed Kotlin code that can execute the N1QL queries against a db.

SQLDelight supports dialects of SQL.

Also, you can create custom drivers:

It might be possible to have couchbase support thru custom dialect and drivers.
If the couchbase model is too difficult to fit into actual SQLDelight, you could do a separate “N1QLDelight” that implements the same concept.

1 Like

this is really helpful for me thank you for sharing

thank you for sharing..