Module: Mysql2::Util

### Home Classes Methods

### In Files

- lib/mysql2.rb

### Methods

- ::key_hash_as_symbols

### Class/Module Index

Quicksearch

- Mysql2
- Mysql2::Client
- Mysql2::EM
- Mysql2::EM::Client
- Mysql2::EM::Client::Watcher
- Mysql2::Error
- Mysql2::Result
- Mysql2::Util
- Object

No matching classes.

# Mysql2::Util

For holding utility methods

### Public Class Methods

key_hash_as_symbols(hash) click to toggle source

Rekey a string-keyed hash with equivalent symbols.

    # File lib/mysql2.rb, line 58
    def self.key_hash_as_symbols(hash)
      return nil unless hash
      Hash[hash.map { |k,v| [k.to_sym, v] }]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.