Method: WIKK::SQL.connect
- Defined in:
-
lib/wikk_mysql2.rb,
lib/wikk_ruby_mysql.rb
Create WIKK::SQL instance and set up the mySQL connection.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/wikk_mysql2.rb', line 18 def self.connect(db_config) sql = self.new sql.connect(db_config) if block_given? yield sql return sql.close else return sql end end |