PrivateParlorXT::SQLiteStatistics
Inherits PrivateParlorXT::Statistics < Reference < Object
An implementation of Statistics using the Database for storing message data
Constructors
Generally this should use the same connection that was used for the database
Instance methods
Ensures that there is a date value for the 'start_date' key in the 'system_config' table
Increment the message count according to the given type and increment the total number of messages in general
Returns a hash of Karma to `Int32 , containing the total number of karma given or lost, and daily, weekly, and monthly totals
Returns an Int32 total of users whose karma lie between start_value and end_value
Returns a hash of Messages to Int32, containing the total number of message for each type and daily, weekly, and monthly totals
Returns a hash of Robot9000 to Int32, containing the total number of unique and unoriginal messages for texts and media types
Returns a String containing the date at which the statistics module was initialized
Returns a hash of Users to Int32, containing the total number of each kind of user and daily, weekly, and monthly totals