2009年4月4日土曜日

[Grails]Upgraded Split Write Database Connection Plugin for master/slave configuration(Alpha version 0.3)

Upgraded the Grails Split Write Database Connection Plugin for master-slave configuration (Alpha version 0.3, like the magic multi connection for rails framework, multiple datasource)
I fixed some bugs and added new methods, changed the source code as follows.

Version 0.3
  • change the flush mode for the base session to avoid saving the changed domain class automatically into the base database. The flush mode for the base session is changed to the manual.
  • add new methods named discardXXX, attachXXX, refreshXXX for the save session.
  • added new CustomSavePersistentMethod and use this class when saving
  • added new method validateAndDiscard and discardAll which sync between the base session and save session.
Download
http://groups.google.com/group/taapps-sourcecode-libraries/web/grails-split-write-db-0.3.zip

0 件のコメント: