Selaa lähdekoodia

Update godoc for KeyspaceMetadata() indicating what the function returns if the specified
keyspace does not exist.

Jesse Claven 9 vuotta sitten
vanhempi
commit
90f11e5acd
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      session.go

+ 1 - 1
session.go

@@ -389,7 +389,7 @@ func (s *Session) executeQuery(qry *Query) *Iter {
 	return iter
 }
 
-// KeyspaceMetadata returns the schema metadata for the keyspace specified.
+// KeyspaceMetadata returns the schema metadata for the keyspace specified. Returns an error if the keyspace does not exist.
 func (s *Session) KeyspaceMetadata(keyspace string) (*KeyspaceMetadata, error) {
 	// fail fast
 	if s.Closed() {