Method: Cequel::Metal::Updater#list_prepend

Defined in:
lib/cequel/metal/updater.rb

#list_prepend(column, elements) ⇒ void

This method returns an undefined value.

Prepend elements to a list column

Parameters:

  • column (Symbol)

    column name

  • elements (Array<Object>)

    elements to prepend

See Also:

Since:

  • 1.0.0



47
48
49
50
# File 'lib/cequel/metal/updater.rb', line 47

def list_prepend(column, elements)
  statements << "#{column} = [?] + #{column}"
  bind_vars << elements
end