The Artima Developer Community
Sponsored Link

Java Buzz Forum
Script Locator in jDBI

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
Script Locator in jDBI Posted: Nov 19, 2005 3:40 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: Script Locator in jDBI
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

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).

Have Fun!

Read: Script Locator in jDBI

Topic: [Nov 9, 2005 12:48 PST] 9 Links Previous Topic   Next Topic Topic: When software-generated suggestions go bad

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use