Method: Cequel::Record::List#clear

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

#clearList

Remove all elements from the list. This will propagate to the database as a DELETE of the list column.

Returns:

Since:

  • 1.0.0



254
255
256
257
# File 'lib/cequel/record/collection.rb', line 254

def clear
  to_update { deleter.delete_columns(column_name) }
  to_modify { super }
end