require 'pg'
+require 'common/plugin'
+require 'mailshears/rm_plugin'
+
class AgendavDb
include Plugin
+ include RmPlugin
def initialize()
cfg = Configuration.new()
end
def describe_account(account)
- if user_exists(account)
+ if self.user_exists(account)
return "Username: #{account}"
else
return 'User not found'
# Delete the given username and any records in other tables
# belonging to it.
- sql_queries = ['DELETE FROM prefs WHERE username = $1::int;']
- sql_queries << 'DELETE FROM shared WHERE user_from = $1::int;'
+ sql_queries = ['DELETE FROM prefs WHERE username = $1;']
+ sql_queries << 'DELETE FROM shared WHERE user_from = $1;'
begin
connection = PGconn.connect(@db_host,