A representation of the schema for a single keyspace.
| 693 | |
| 694 | |
| 695 | class KeyspaceMetadata(object): |
| 696 | """ |
| 697 | A representation of the schema for a single keyspace. |
| 698 | """ |
| 699 | |
| 700 | name = None |
| 701 | """ The string name of the keyspace. """ |
| 702 | |
| 703 | durable_writes = True |
| 704 | """ |
| 705 | A boolean indicating whether durable writes are enabled for this keyspace |
| 706 | or not. |
| 707 | """ |
| 708 | |
| 709 | replication_strategy = None |
| 710 | """ |
| 711 | A :class:`.ReplicationStrategy` subclass object. |
| 712 | """ |
| 713 | |
| 714 | tables = None |
| 715 | """ |
| 716 | A map from table names to instances of :class:`~.TableMetadata`. |
| 717 | """ |
| 718 | |
| 719 | indexes = None |
| 720 | """ |
| 721 | A dict mapping index names to :class:`.IndexMetadata` instances. |
| 722 | """ |
| 723 | |
| 724 | user_types = None |
| 725 | """ |
| 726 | A map from user-defined type names to instances of :class:`~cassandra.metadata.UserType`. |
| 727 | |
| 728 | .. versionadded:: 2.1.0 |
| 729 | """ |
| 730 | |
| 731 | functions = None |
| 732 | """ |
| 733 | A map from user-defined function signatures to instances of :class:`~cassandra.metadata.Function`. |
| 734 | |
| 735 | .. versionadded:: 2.6.0 |
| 736 | """ |
| 737 | |
| 738 | aggregates = None |
| 739 | """ |
| 740 | A map from user-defined aggregate signatures to instances of :class:`~cassandra.metadata.Aggregate`. |
| 741 | |
| 742 | .. versionadded:: 2.6.0 |
| 743 | """ |
| 744 | |
| 745 | views = None |
| 746 | """ |
| 747 | A dict mapping view names to :class:`.MaterializedViewMetadata` instances. |
| 748 | """ |
| 749 | |
| 750 | virtual = False |
| 751 | """ |
| 752 | A boolean indicating if this is a virtual keyspace or not. Always ``False`` |
no outgoing calls