README.md in sqlcomposer-0.1.0 vs README.md in sqlcomposer-0.1.1
- old
+ new
@@ -1,29 +1,34 @@
# Sqlcomposer
-Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sqlcomposer`. To experiment with that code, run `bin/console` for an interactive prompt.
+Compose SQL from Mybatis log
-TODO: Delete this and the text above, and describe your gem
-
## Installation
-Add this line to your application's Gemfile:
+Install it yourself as:
-```ruby
-gem 'sqlcomposer'
-```
+ $ gem install sqlcomposer
-And then execute:
+Or:
- $ bundle
+ $ sudo gem install sqlcomposer
-Or install it yourself as:
+## Usage
- $ gem install sqlcomposer
+Copy log content like this:
-## Usage
+```
+2019-05-10 10:27:22.023 [XNIO-2 task-3] DEBUG c.k.d.s.s.r.m.S.getPerson - ==> Preparing: SELECT * FROM person where name = ? and age = ?
+2019-05-10 10:27:22.025 [XNIO-2 task-3] DEBUG c.k.d.s.s.r.m.S.getPerson - ==> Parameters: 张三(String), 20(Integer)
+```
-TODO: Write usage instructions here
+then execute:
+
+ $ pbpaste | sqlcomposer
+
+will print out:
+
+ SELECT * FROM person where name = '张三' and age = 20 ;
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.