Module: RDKit::DBCommands::KeyCommands

Included in:
RDKit::DBCommands
Defined in:
lib/rdkit/db_commands.rb

Instance Method Summary collapse

Instance Method Details

#del(key, *more_keys) ⇒ Object



143
144
145
# File 'lib/rdkit/db_commands.rb', line 143

def del(key, *more_keys)
  db.del(more_keys.unshift(key))
end

#exists(key) ⇒ Object



151
152
153
# File 'lib/rdkit/db_commands.rb', line 151

def exists(key)
  db.exists?(key)
end

#keys(pattern) ⇒ Object



147
148
149
# File 'lib/rdkit/db_commands.rb', line 147

def keys(pattern)
  db.filter_keys(pattern)
end

#type(key) ⇒ Object



155
156
157
# File 'lib/rdkit/db_commands.rb', line 155

def type(key)
  db.type(key)
end