Module: Jdbc::MySQL

Defined in:
lib/jdbc/mysql.rb,
lib/jdbc/mysql/version.rb

Constant Summary collapse

DRIVER_VERSION =
'8.0.17'
VERSION =
DRIVER_VERSION

Class Method Summary collapse

Class Method Details

.driver_jarObject


7
8
9
# File 'lib/jdbc/mysql.rb', line 7

def self.driver_jar
  "mysql-connector-java-#{DRIVER_VERSION}.jar"
end

.driver_nameObject


15
16
17
# File 'lib/jdbc/mysql.rb', line 15

def self.driver_name
  'com.mysql.cj.jdbc.Driver'
end

.load_driver(method = :load) ⇒ Object


11
12
13
# File 'lib/jdbc/mysql.rb', line 11

def self.load_driver(method = :load)
  send method, driver_jar
end