Represents a cassandra table

See Also:

Inherits

Object

Constants

NULL_BYTE

"\x00".freeze

Methods

name

Returns table name

Returns:
Type Details
String table name

has_column?

(name)

Returns whether this table has a given column

Parameters:
Name Type Details
name String column name
Returns:
Type Details
Boolean whether this table has a given column

column

(name)

Returns a column or nil

Parameters:
Name Type Details
name String column name
Returns:
Type Details
(Column or nil) a column or nil

each_column

(&block) aliased as: columns

Yield or enumerate each column defined in this table

Overloads:
each_column {|column| … }

Returns self

Yield Parameters:
Name Type Details
column Column current column
Returns:
Type Details
Table self
each_column

Returns a list of columns

Returns:
Type Details
Array<Column> a list of columns

to_cql

Returns a cql representation of this table

Returns:
Type Details
String a cql representation of this table

inspect

Returns a CLI-friendly table representation

Returns:
Type Details
String a CLI-friendly table representation

eql?

(other) aliased as: ==

Returns whether this table is equal to the other

Returns:
Type Details
Boolean whether this table is equal to the other

partition_key

Returns the value of attribute partition_key

clustering_columns

Returns the value of attribute clustering_columns

clustering_order

Returns the value of attribute clustering_order