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.