Method: Cequel::Record::Schema::ClassMethods#read_schema

Defined in:
lib/cequel/record/schema.rb

#read_schemaSchema::Table

Read the current state of this record’s table in Cassandra from the database.

Returns:

  • (Schema::Table)

    the current schema assigned to this record’s table in the database

Since:

  • 1.0.0



91
92
93
# File 'lib/cequel/record/schema.rb', line 91

def read_schema
  connection.schema.read_table(table_name)
end