Class: TC_Integration_Aggregate::AggregateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb,
lib/sqlite3-1.5.3-x86_64-darwin/test/test_integration_aggregate.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.arityObject



227
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 227

def arity; 1; end

.nameObject



229
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 229

def name; "multiply"; end

.text_repObject



228
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 228

def text_rep; SQLite3::Constants::TextRep::ANY; end

Instance Method Details

#finalize(ctx) ⇒ Object



235
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 235

def finalize(ctx); ctx.result = ctx[:buffer]; end

#step(ctx, a) ⇒ Object



231
232
233
234
# File 'lib/sqlite3-1.5.3-arm64-darwin/test/test_integration_aggregate.rb', line 231

def step(ctx, a)
  ctx[:buffer] ||= 1
  ctx[:buffer] *= a.to_i
end