Object
A helper class for dealing with custom functions (see #, #, and #). It encapsulates the opaque function object that represents the current invocation. It also provides more convenient access to the API functions that operate on the function object.
This class will almost always be instantiated indirectly, by working with the create methods mentioned above.
Create a new FunctionProxy that encapsulates the given func object. If context is non-nil, the functions context will be set to that. If it is non-nil, it must quack like a Hash. If it is nil, then none of the context functions will be available.
# File lib/sqlite3/database.rb, line 539
539: def initialize
540: @result = nil
541: @context = {}
542: end
Returns the value with the given key from the context. This is only available to aggregate functions.
# File lib/sqlite3/database.rb, line 559
559: def []( key )
560: @context[ key ]
561: end
Sets the value with the given key in the context. This is only available to aggregate functions.
# File lib/sqlite3/database.rb, line 565
565: def []=( key, value )
566: @context[ key ] = value
567: end
(Only available to aggregate functions.) Returns the number of rows that the aggregate has processed so far. This will include the current row, and so will always return at least 1.
# File lib/sqlite3/database.rb, line 553
553: def count
554: @driver.aggregate_count( @func )
555: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.