Skip to content

Commit

Permalink
better README - logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Gęga committed Oct 1, 2011
1 parent b168d05 commit fe64815
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions README.markdown
@@ -1,33 +1,43 @@
Jibernate/Hibernate module for DataMapper
dm-hibernate-adapter aka jibernate
=========================================

*WARNING* Don't use `-o` if you want to access remote repositories


### You have to:
### Installation:

jruby -S gem install ruby-maven

setup the gems and compile the java extension

rmvn clean gem:initialize compile -- -Djruby.version=1.6.4

run the eventlog - list
### ruby-maven

* The ruby-maven setup will generate a pom.xml which can be used by proper maven3.
* Don't use `-o` if you want to access remote repositories

### Logging

* use `SHOW_SQL=true` ENV variable in order to log SQL (turned off by default, except DDL)
* use `FORMAT_SQL=true` ENV variable in order to format SQL logs

### Howtos:


how to test basic actions `with eventlog.rb`

* how to run the eventlog - listing

rmvn gem exec eventlog.rb list -- -o -Djruby.version=1.6.4

run the eventlog - store
* how to run the eventlog - storing record

rmvn gem exec eventlog.rb store something -- -o -Djruby.version=1.6.4

run the eventlog - store with rollback
* how to run the eventlog - storing with rollback

rmvn gem exec eventlog.rb store_rollback something -- -o -Djruby.version=1.6.4


### Howtos:

how to list rake tasks (please note the jruby.rake.args part(var name))
* how to list rake tasks (please note the jruby.rake.args part(var name))

rmvn rake -T -- -o

Expand Down Expand Up @@ -71,6 +81,4 @@ if you are getting problems with specs you can skip that phase:

-- -Dmaven.test.skip=true

### Note

the ruby-maven setup will generate a pom.xml which can be used by proper maven3.

0 comments on commit fe64815

Please sign in to comment.