Open zyfdegh opened 7 years ago
The question can be simplified as following
user
,
{"username" : "admin","password" : "$2y$05$hvbfzxywSeQjlF28XpLQCeiHZpTkO7od9xmKtki2XGTNkG0njtI6q"}
{"username" : "user2","password" : "$2y$05$H/7thIYBrgl/c3P3Mjmm5u6Y/xuXAwnNRfLI6ib50/7C41fOhpxOG"}
username==admin
from the database. If any doc matches, I will compare the password.Then, how?
That sounds more like a general question about querying CouchDB. The question is not directly related to this library. Please try http://stackoverflow.com/questions/tagged/couchdb.
Well, I got stuck to use db.View() to query filtered data from CouchDB. I have carefully looked up
view_test.go
but I'm confused about the_design
database. Is the possible to query filtered data without setting_design/*
database? Could you(or anyone) please add an example underexample/
directory to show how to use it?