Method: Sequel::Mock::Database#columns=
- Defined in:
- lib/sequel/adapters/mock.rb
permalink #columns=(value) ⇒ Object
Set the columns to set in the dataset when the dataset fetches rows. Argument types supported:
- nil
-
Set no columns
- Array of Symbols
-
Used for all datasets
- Array (otherwise)
-
First retrieval gets the first value in the array, second gets the second value, etc.
- Proc
-
Called with the select SQL query, uses the value returned, which should be an array of symbols
67 68 69 |
# File 'lib/sequel/adapters/mock.rb', line 67 def columns=(value) @columns = value end |