Skip to content

winebarrel/tiny_mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyMysql

Tiny MySQL clinet dependent on mysql command.

Installation

Add this line to your application's Gemfile:

gem 'tiny_mysql'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tiny_mysql

Usage

require 'pp'

mysql = TinyMysql.new(username: 'scott', password: 'tiger', database: 'mysql')

pp mysql.query('show tables')
# => [{"Tables_in_mysql"=>"columns_priv"},
#     {"Tables_in_mysql"=>"db"},
#     {"Tables_in_mysql"=>"event"},
#     ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published