Class: SQLite::QueryContext
- Inherits:
-
Hash
- Object
- Hash
- SQLite::QueryContext
- Defined in:
- ext/sqlite.c
Instance Method Summary collapse
-
#aggregate_count ⇒ Object
Returns the number of rows in the aggregate context.
-
#properties ⇒ Object
Returns the properties attribute of the aggregate context.
Instance Method Details
#aggregate_count ⇒ Object
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 ) );
}
|
#properties ⇒ Object
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 ) );
}
|