Method: Persist.keys

Defined in:
lib/persist/persist.rb

.keysObject

Public: Fetch a list of persistent store root tables.

Examples

Persist.keys
# => [:author]

Returns an Array containing the persistent store root tables.



73
74
75
76
77
78
79
# File 'lib/persist/persist.rb', line 73

def keys
  initialize_db

  @db.transaction true do
    @db.roots
  end
end