pobietra liste documentow z couchdb
This commit is contained in:
parent
ea2b68b3ee
commit
192928f8f5
Binary file not shown.
@ -44,6 +44,13 @@ func connectCouchdb() couchdb.DatabaseService {
|
|||||||
// return client, err
|
// return client, err
|
||||||
fmt.Println(reflect.TypeOf(client))
|
fmt.Println(reflect.TypeOf(client))
|
||||||
db := client.Use("golang_cards")
|
db := client.Use("golang_cards")
|
||||||
|
client.All()
|
||||||
|
result, err := db.AllDesignDocs()
|
||||||
|
|
||||||
|
fmt.Println(reflect.TypeOf(result))
|
||||||
|
|
||||||
|
// allCards := []cardDocument{}
|
||||||
|
|
||||||
// return db
|
// return db
|
||||||
fmt.Println(reflect.TypeOf(db))
|
fmt.Println(reflect.TypeOf(db))
|
||||||
return db
|
return db
|
||||||
@ -82,6 +89,7 @@ func addNewCard(_isQuestion bool, _blank int, _text string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf(result.ID)
|
fmt.Printf(result.ID)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user