pobietra liste documentow z couchdb

This commit is contained in:
pawlaczyk 2019-01-07 01:22:08 +01:00
parent ea2b68b3ee
commit 192928f8f5
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -44,6 +44,13 @@ func connectCouchdb() couchdb.DatabaseService {
// return client, err
fmt.Println(reflect.TypeOf(client))
db := client.Use("golang_cards")
client.All()
result, err := db.AllDesignDocs()
fmt.Println(reflect.TypeOf(result))
// allCards := []cardDocument{}
// return db
fmt.Println(reflect.TypeOf(db))
return db
@ -82,6 +89,7 @@ func addNewCard(_isQuestion bool, _blank int, _text string) {
}
fmt.Printf(result.ID)
}
func main() {