Module: JDBCHelper::SQLite

Extended by:
Connector
Defined in:
lib/jdbc-helper/connector/sqlite.rb

Overview

Shortcut connector for SQLite

Class Method Summary collapse

Methods included from Connector

check_params, connect_impl, ensure_close

Class Method Details

.connect(path, extra_params = {}, &block) ⇒ JDBCHelper::Connection

Parameters:

  • path (String)
  • extra_params (Hash) (defaults to: {})

Returns:



12
13
14
15
16
# File 'lib/jdbc-helper/connector/sqlite.rb', line 12

def self.connect(path, extra_params = {}, &block)
  connect_impl :sqlite, {
    :url      => "jdbc:sqlite:#{path}",
  }, extra_params, &block
end