module ShackKit::Data
Constants
- CALLSIGN_REGEX
- CONFIG
- CONFIG_FILE
- DATA_DIR
- DB
- DB_FILE
- MIGRATIONS_DIR
- SOURCES_DIR
- USER_AGENT
Public Class Methods
db_load()
click to toggle source
# File lib/shack_kit/data/base.rb, line 35 def db_load SOTACalls.update SOTASummits.update SPCalls.update end
db_setup()
click to toggle source
# File lib/shack_kit/data/base.rb, line 24 def db_setup FileUtils.mkpath(DATA_DIR) SQLite3::Database.new(DB_FILE) unless File.file?(DB_FILE) schema_update end
schema_update()
click to toggle source
# File lib/shack_kit/data/base.rb, line 30 def schema_update Sequel.extension :migration Sequel::Migrator.run(DB, MIGRATIONS_DIR) end