Scylla Documentation Logo Documentation
  • Server
    • Scylla Open Source
    • Scylla Enterprise
    • Scylla Alternator
  • Cloud
    • Scylla Cloud
    • Scylla Cloud Docs
  • Tools
    • Scylla Manager
    • Scylla Monitoring Stack
    • Scylla Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
Download
Menu
Scylla C/C++ Driver Documentation API Documentation CassSchemaMeta

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 – [in]

Returns

The snapshot version.

CassVersion cass_schema_meta_version(const CassSchemaMeta *schema_meta)¶

Gets the version of the connected Cassandra cluster.

Parameters

schema_meta – [in]

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 – [in]

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

cass_schema_meta_keyspace_by_name()

Parameters
  • schema_meta – [in]

  • keyspace – [in]

  • keyspace_length – [in]

Returns

same as cass_schema_meta_keyspace_by_name()

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.

PREVIOUS
CassRow
NEXT
CassSession
  • master
    • master
  • C/C++ Driver for ScyllaDB
  • API Documentation
    • CassAggregateMeta
    • CassAuthenticator
    • CassBatch
    • CassCluster
    • CassCollection
    • CassColumnMeta
    • CassCustomPayload
    • CassDataType
    • CassErrorResult
    • CassExecProfile
    • CassFunctionMeta
    • CassFuture
    • CassIndexMeta
    • CassInet
    • CassIterator
    • CassKeyspaceMeta
    • CassMaterializedViewMeta
    • CassMetrics
    • CassNode
    • CassPrepared
    • CassResult
    • CassRetryPolicy
    • CassRow
    • CassSchemaMeta
    • CassSession
    • CassSsl
    • CassStatement
    • CassTableMeta
    • CassTimestampGen
    • CassTuple
    • CassUserType
    • CassUuid
    • CassUuidGen
    • CassValue
    • CassVersion
    • DseDateRange
    • DseDateRangeBound
    • DseLineString
    • DseLineStringIterator
    • DsePolygon
    • DsePolygonIterator
  • Features
    • Basics
      • Batches
      • Binding Parameters
      • Client-side timestamps
      • Consistency
      • Data Types
      • The date and time Types
      • Futures
      • Handling Results
      • Keyspaces
      • Prepared Statements
      • Schema Metadata
      • Tuples
      • User-Defined Types (UDTs)
      • UUIDs
    • Building
    • Client Configuration
    • Cloud
    • Configuration
      • Retry policies
    • Execution Profiles
    • FAQ
    • Installation
    • Logging
    • Metrics
    • Scylla Specific Features
    • Security
      • SSL
    • Testing
      • Cassandra Cluster Manager (CCM)
    • Tracing
  • DSE Features
    • Authentication
    • Geospatial types
  • Create an issue
  • Edit this page
Logo
Docs Contact Us About Us
Mail List Icon Slack Icon
© 2022, ScyllaDB. All rights reserved.
Last updated on 18 October 2022.
Powered by Sphinx 4.3.2 & ScyllaDB Theme 1.3.1