Skip to content

Commit

Permalink
修正に対するドキュメント
Browse files Browse the repository at this point in the history
  • Loading branch information
ken39arg committed Oct 5, 2012
1 parent 832c88c commit 568e415
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ add ${HOME}/.sharding_prompt.yml

user: root
password: ''
pre_commands:
- set names utf8
- set sql_big_selects=1

HOWTO USE PROMPT
----------
Expand Down
3 changes: 3 additions & 0 deletions bin/shard_prompt
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ shard_prompt - database management prompt for sharded databases.
user: root
password: ''
pre_commands:
- set names utf8
- set sql_big_selects=1
5 changes: 5 additions & 0 deletions lib/MySQL/Sharding/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ This document describes MySQL::Sharding::Client version 0.0.1.
},
user => $default_user,
password => $default_pass,
pre_commands => [
$preset_sql_1,
$preset_sql_2,
...,
],
);
# ping to all dbhs.
Expand Down

0 comments on commit 568e415

Please sign in to comment.