Class: SQLite::QueryContext

Inherits:
Hash
  • Object
show all
Defined in:
ext/sqlite.c

Instance Method Summary collapse

Instance Method Details

#aggregate_countObject

Returns the number of rows in the aggregate context.



736
737
738
739
740
741
742
743
# File 'ext/sqlite.c', line 736

static VALUE static_aggregate_count( VALUE self )
{
  sqlite_func *ctx;

  Data_Get_Struct( self, sqlite_func, ctx );

  return INT2FIX( sqlite_aggregate_count( ctx ) );
}

#propertiesObject

Returns the properties attribute of the aggregate context. This will always be a Hash object, which your custom functions may use to accumulate information into.



751
752
753
754
755
756
757
758
# File 'ext/sqlite.c', line 751

static VALUE static_get_properties( VALUE self )
{
  sqlite_func *ctx;

  Data_Get_Struct( self, sqlite_func, ctx );

  return *(VALUE*)sqlite_aggregate_context( ctx, sizeof( VALUE ) );
}