Module: JRubySQL::Input
- Defined in:
- lib/jrubysql/input/input.rb,
lib/jrubysql/input/script.rb,
lib/jrubysql/input/console.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.get_each_sql_type(db_type) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/jrubysql/input/input.rb', line 5 def self.get_each_sql_type db_type { :mysql => :mysql, :oracle => :oracle, :postgres => :postgres }[db_type] || :default end |
.get_parser(db_type, delimiter = ';') ⇒ Object
13 14 15 |
# File 'lib/jrubysql/input/input.rb', line 13 def self.get_parser db_type, delimiter = ';' EachSQL.new(get_each_sql_type(db_type), delimiter) end |