MCPcopy Create free account
hub / github.com/datastax/astrapy / keyspace

Method keyspace

astrapy/data/database.py:2740–2753  ·  view source on GitHub ↗

The keyspace this database uses as target for all commands when no method-call-specific keyspace is specified. Returns: the working keyspace (a string), or None if not set. Example: >>> async_database.keyspace 'the_keyspace'

(self)

Source from the content-addressed store, hash-verified

2738
2739 @property
2740 def keyspace(self) -> str | None:
2741 """
2742 The keyspace this database uses as target for all commands when
2743 no method-call-specific keyspace is specified.
2744
2745 Returns:
2746 the working keyspace (a string), or None if not set.
2747
2748 Example:
2749 >>> async_database.keyspace
2750 'the_keyspace'
2751 """
2752
2753 return self._using_keyspace
2754
2755 @overload
2756 def get_collection(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected