Just added a pluggable script locator module to jDBI. The script locator is used when you use the handle to execute scripts, so by default you can do:
handle.script("scripts/create-tables.sql");
handle.script("com/example/classpath-scripts.sql");
handle.script("https://example.com/scripts/remote-script.sql");
Of course, you can also write your own implementation of
ScriptLocator (define one method) which locates script
some other way =)
I pushed two releases with this. The first is a fully backwards
compatible 1.3.3 release. The second is a 1.4.0 release which
exposes the methods for specifying the statement locator and handle
decorator on the IDBI interface (and is a 1.X upgrade
as others may have implemented the interface and this would break
their implementation).
writebacks...
Releases
Wow, just checked through the readme, this is the 26th release! Guess they add up when you try hard to keep head stable and release for each fix or new piece of functioanlity =) Fun part is, once again, there is far more test code than code. Wheeee. This is definately the most test-driven project I work on, and ingterestigly, one of the ones I trust the most by a long shot, the one which is the easiest to make a release on, and the one that is probably the easiest to use! Go test first!
comment...