Was this page helpful?
CassSchemaMeta¶
-
struct CassSchemaMeta¶
A snapshot of the schema’s metadata.
Public Functions
-
void cass_schema_meta_free(const CassSchemaMeta *schema_meta)¶
Frees a schema metadata instance.
- Parameters:
schema_meta – [in]
-
cass_uint32_t cass_schema_meta_snapshot_version(const CassSchemaMeta *schema_meta)¶
Gets the version of the schema metadata snapshot.
- Parameters:
schema_meta –
- Returns:
The snapshot version.
-
CassVersion cass_schema_meta_version(const CassSchemaMeta *schema_meta)¶
Gets the version of the connected Cassandra cluster.
- Parameters:
schema_meta –
- Returns:
Cassandra’s version
-
const CassKeyspaceMeta *cass_schema_meta_keyspace_by_name(const CassSchemaMeta *schema_meta, const char *keyspace)¶
Gets the keyspace metadata for the provided keyspace name.
- Parameters:
schema_meta – [in]
keyspace –
- Returns:
The metadata for a keyspace. NULL if keyspace does not exist.
-
const CassKeyspaceMeta *cass_schema_meta_keyspace_by_name_n(const CassSchemaMeta *schema_meta, const char *keyspace, size_t keyspace_length)¶
Same as cass_schema_meta_keyspace_by_name(), but with lengths for string parameters.
See also
- Parameters:
schema_meta – [in]
keyspace – [in]
keyspace_length – [in]
- Returns:
-
CassIterator *cass_iterator_keyspaces_from_schema_meta(const CassSchemaMeta *schema_meta)¶
Creates a new iterator for the specified schema metadata. This can be used to iterate over keyspace.
See also
cass_iterator_get_keyspace_meta()
See also
cass_iterator_free()
- Parameters:
schema_meta – [in]
- Returns:
A new iterator that must be freed.
-
void cass_schema_meta_free(const CassSchemaMeta *schema_meta)¶