A snapshot of the cluster’s schema metadata.

Functions

void

cass_schema_free

( const CassSchema * schema )

Frees a schema instance.

Parameters:
Name Type Details
in schema const CassSchema *
const CassSchemaMeta *

cass_schema_get_keyspace

( const CassSchema * schema, const char * keyspace_name )

Gets a the metadata for the provided keyspace name.

Parameters:
Name Type Details
in schema const CassSchema *
in keyspace_name const char *
Returns:
Type Details
const CassSchemaMeta *

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

See Also:
CassSchemaMetaType

cass_schema_meta_type

( const CassSchemaMeta * meta )

Gets the type of the specified schema metadata.

Parameters:
Name Type Details
in meta const CassSchemaMeta *
Returns:
Type Details
CassSchemaMetaType

The type of the schema metadata

CassIterator *

cass_iterator_from_schema

( const CassSchema * schema )

Creates a new iterator for the specified schema. This can be used to iterate over keyspace entries.

Parameters:
Name Type Details
in schema const CassSchema *
Returns:
Type Details
CassIterator *

A new iterator that must be freed.

See Also: