Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miyucy/test-mysqld
port of Test::mysqld
https://github.com/miyucy/test-mysqld
Last synced: 6 days ago
JSON representation
port of Test::mysqld
- Host: GitHub
- URL: https://github.com/miyucy/test-mysqld
- Owner: miyucy
- License: mit
- Created: 2010-11-10T09:48:34.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2014-09-09T05:38:22.000Z (about 10 years ago)
- Last Synced: 2024-10-18T11:31:12.266Z (20 days ago)
- Language: Ruby
- Homepage:
- Size: 148 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= test-mysqld
see http://developer.cybozu.co.jp/kazuho/2009/08/perl-mysql-test.html
require 'pp'
require 'rubygems'
require 'test/mysqld'
mysqld = Test::Mysqld.new(:auto_start => true)
pp mysqld
pp mysqld.dsn
pp conn = Mysql2::Client.new(mysqld.dsn)
# >> #> @base_dir="/tmp/d20101110-13587-1aemfmq",
# >> @mycnf=
# >> {"datadir"=>"/tmp/d20101110-13587-1aemfmq/var",
# >> "pid-file"=>"/tmp/d20101110-13587-1aemfmq/tmp/mysql.pid",
# >> "socket"=>"/tmp/d20101110-13587-1aemfmq/tmp/mysql.sock"},
# >> @mysql_install_db="/usr/bin/mysql_install_db",
# >> @mysqld="/usr/sbin/mysqld",
# >> @pid=13651>
# >> {:socket=>"/tmp/d20101110-13587-1aemfmq/tmp/mysql.sock",
# >> :username=>"root",
# >> :database=>"test"}
# >> #> @query_options=
# >> {:database_timezone=>:local,
# >> :as=>:hash,
# >> :application_timezone=>nil,
# >> :cache_rows=>true,
# >> :async=>false,
# >> :cast_booleans=>false,
# >> :symbolize_keys=>false,
# >> :connect_flags=>2147525125}>you need mysql2.gem or mysql.gem
== Note on Patches/Pull Requests
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.== Copyright
Copyright (c) 2010 miyucy. See LICENSE for details.