diff --git a/backend/connector_couchdb.exe b/backend/connector_couchdb.exe index 5919d6b..eeb81ba 100644 Binary files a/backend/connector_couchdb.exe and b/backend/connector_couchdb.exe differ diff --git a/backend/connector_couchdb.go b/backend/connector_couchdb.go index 8dfcb17..81a4c0c 100644 --- a/backend/connector_couchdb.go +++ b/backend/connector_couchdb.go @@ -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() {