class Irc::Bot::Journal::Storage::AbstractStorage

Public Class Methods

get_impl() click to toggle source

Returns all classes from the namespace that implement this interface

# File lib/rbot/journal.rb, line 121
def self.get_impl
  ObjectSpace.each_object(Class).select { |klass| klass < self }
end
new(opts={}) click to toggle source

initializes/opens a new storage connection

# File lib/rbot/journal.rb, line 93
def initialize(opts={})
end

Public Instance Methods

count(query=nil) click to toggle source

returns the number of messages that match the query

# File lib/rbot/journal.rb, line 109
def count(query=nil)
end
drop() click to toggle source

destroy the underlying table/collection

# File lib/rbot/journal.rb, line 117
def drop
end
ensure_payload_index(key) click to toggle source

creates/ensures a index exists on the payload specified by key

# File lib/rbot/journal.rb, line 101
def ensure_payload_index(key)
end
find(query=nil, limit=100, offset=0, &block) click to toggle source

returns a array of message instances that match the query

# File lib/rbot/journal.rb, line 105
def find(query=nil, limit=100, offset=0, &block)
end
insert(message) click to toggle source

inserts a message in storage

# File lib/rbot/journal.rb, line 97
def insert(message)
end
remove(query=nil) click to toggle source

remove messages that match the query

# File lib/rbot/journal.rb, line 113
def remove(query=nil)
end