Menu

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:

cass_uint32_t cass_schema_meta_snapshot_version(const CassSchemaMeta *schema_meta)

Gets the version of the schema metadata snapshot.

Return

The snapshot version.

Parameters
  • schema_meta:

CassVersion cass_schema_meta_version(const CassSchemaMeta *schema_meta)

Gets the version of the connected Cassandra cluster.

Return

Cassandra’s version

Parameters
  • schema_meta:

const CassKeyspaceMeta *cass_schema_meta_keyspace_by_name(const CassSchemaMeta *schema_meta, const char *keyspace)

Gets the keyspace metadata for the provided keyspace name.

Return

The metadata for a keyspace. NULL if keyspace does not exist.

Parameters
  • schema_meta:

  • keyspace:

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.

Return

same as cass_schema_meta_keyspace_by_name()

See

cass_schema_meta_keyspace_by_name()

Parameters
  • schema_meta:

  • keyspace:

  • keyspace_length:

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.

Return

A new iterator that must be freed.

See

cass_iterator_get_keyspace_meta()

See

cass_iterator_free()

Parameters
  • schema_meta: