Class: SQLiteServer2018

Inherits:
Object
  • Object
show all
Defined in:
lib/sqlite_server2018.rb

Instance Method Summary collapse

Constructor Details

#initialize(host: 'localhost', port: '57000', cache: 5) ⇒ SQLiteServer2018

Returns a new instance of SQLiteServer2018.



77
78
79
80
81
# File 'lib/sqlite_server2018.rb', line 77

def initialize(host: 'localhost', port: '57000', cache: 5)

  @host, @port, @cache = host, port, cache

end

Instance Method Details

#startObject



83
84
85
86
87
88
89
# File 'lib/sqlite_server2018.rb', line 83

def start()
  
  DRb.start_service "druby://#{@host}:#{@port}", 
      SQLiteServer.new(cache: @cache)
  DRb.thread.join

end