Class: SQLiteServer2018Plus
- Inherits:
-
Object
- Object
- SQLiteServer2018Plus
- Defined in:
- lib/sqlite_server2018_plus.rb
Instance Method Summary collapse
-
#initialize(host: 'localhost', port: '57000', nodes: [], debug: false) ⇒ SQLiteServer2018Plus
constructor
A new instance of SQLiteServer2018Plus.
- #start ⇒ Object
Constructor Details
#initialize(host: 'localhost', port: '57000', nodes: [], debug: false) ⇒ SQLiteServer2018Plus
Returns a new instance of SQLiteServer2018Plus.
124 125 126 127 128 |
# File 'lib/sqlite_server2018_plus.rb', line 124 def initialize(host: 'localhost', port: '57000', nodes: [], debug: false) @host, @port, @nodes, @debug = host, port, nodes, debug end |
Instance Method Details
#start ⇒ Object
130 131 132 133 134 135 136 |
# File 'lib/sqlite_server2018_plus.rb', line 130 def start() DRb.start_service "druby://#{@host}:#{@port}", SQLiteServer2018.new(@nodes, debug: @debug) DRb.thread.join end |