Top Level Namespace
Defined Under Namespace
Classes: Mysql
Constant Summary collapse
- MysqlRes =
cMysqlRes
- MysqlField =
cMysqlField
- MysqlError =
eMysql
Instance Method Summary collapse
-
#default_mysql_config_path ⇒ Object
The first mysql_config binary on PATH …
-
#mysql_config_paths ⇒ Object
All instances of mysql_config on PATH …
Instance Method Details
#default_mysql_config_path ⇒ Object
The first mysql_config binary on PATH …
24 25 26 |
# File 'ext/mysql_api/extconf.rb', line 24 def default_mysql_config_path mysql_config_paths.compact.first end |
#mysql_config_paths ⇒ Object
All instances of mysql_config on PATH …
16 17 18 19 20 21 |
# File 'ext/mysql_api/extconf.rb', line 16 def mysql_config_paths ENV['PATH'].split(File::PATH_SEPARATOR).collect do |path| [ "#{path}/mysql_config", "#{path}/mysql_config5" ]. detect { |bin| File.exist?(bin) } end end |