Class: Picky::Backends::SQLite::StringKeyArray

Inherits:
Array show all
Defined in:
lib/picky/backends/sqlite/string_key_array.rb

Instance Attribute Summary

Attributes inherited from Basic

#cache_path, #db

Instance Method Summary collapse

Methods inherited from Array

#[], #[]=, #delete, #size

Methods inherited from Basic

#asynchronous, #clear, #drop_table, #dump, #dump_sqlite, #empty, #initial, #initialize, #load, #reset, #synchronous, #to_s, #transaction, #truncate_db

Methods included from Helpers::File

#create_directory

Constructor Details

This class inherits a constructor from Picky::Backends::SQLite::Basic

Instance Method Details

#create_tableObject



9
10
11
# File 'lib/picky/backends/sqlite/string_key_array.rb', line 9

def create_table
  db.execute 'create table key_value (key varchar(255) PRIMARY KEY, value text);'
end