简体   繁体   English

如何通过 ID 以外的字段从 Kivik 获取文档

[英]How to get document from Kivik by field other than ID

I need to fetch a document from DB using kivik in Go but the inbuild get function in Kivik allows you to get value only by using the ID of the document.我需要在 Go 中使用 kivik 从数据库中获取文档,但 Kivik 中的 inbuild get 函数允许您仅通过使用文档的 ID 来获取值。 Is there a way to get document by using field other than the document ID.有没有办法通过使用文档 ID 以外的字段来获取文档。

Here is the link that I am referring - https://github.com/go-kivik/kivik/wiki这是我指的链接 - https://github.com/go-kivik/kivik/wiki

You can make use ofFind .您可以使用Find See CouchDB docs for query semantics.有关查询语义,请参阅CouchDB 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM