class OnesnooperServer::Stores::MysqlStore
MySQL-based store for production deployments with static table structure.
Public Class Methods
new(params = {})
click to toggle source
Calls superclass method
OnesnooperServer::Store::new
# File lib/onesnooper_server/stores/mysql_store.rb, line 5 def initialize(params = {}) super @db_conn = ::Sequel.connect( :adapter => 'mysql2', :database => params[:database], :user => params[:username], :password => params[:password], :host => params[:host], :port => params[:port], ) end