Method: Cure::DatabaseService#setup_db

Defined in:
lib/cure/database.rb

#setup_dbObject



46
47
48
49
50
51
52
53
54
55
# File 'lib/cure/database.rb', line 46

def setup_db
  # Load this from config defined by user?
  @database.execute "    PRAGMA journal_mode = OFF;\n    PRAGMA synchronous = 0;\n    PRAGMA cache_size = 1000000;\n    PRAGMA locking_mode = EXCLUSIVE;\n    PRAGMA temp_store = MEMORY;\n  SQL\nend\n"