Mit ‘datamapper’ getaggte Artikel

patch for do_jdbc – mapToQueryString

Samstag, 24. April 2010

We use DataMapper – an Object Relational Mapper – in parts of our software to make it easier to access our database. In a jruby environment DataMapper will use the JDBC drivers provided for Java with the help of do_jdbc – a component of data_objects used by DataMapper for the actual database access.

As we tried to pass several parameters in the connection URL to the PostgreSQL JDBC driver, we found a bug in the way do_jdbc creates the connection URL passed to the JDBC driver. There is a method mapToQueryString(Map<Object, Object>) in AbstractDriverDefinition. It is responsible for creating the query string of the connection URL. As you all know several query parameters have to be seperated by an &, as you can see every day browsing the web. However, mapToQueryString forgets to insert &s into the query string, thus making it impossible to pass options to JDBC drivers via the connection URL.

You can find a simple patch at our fork of the github project (patch).

datamapper_rack_streamer – giving something back to the community

Donnerstag, 03. Dezember 2009

As we developers from crealytics like the idea of open source technology and most of our projects rely on work, someone from “the community” has done before, it’s time to give something back now and then. Today, this is the datamapper_rack_streamer project, hosted at github.

Now, what’s it all about? Continue reading “datamapper_rack_streamer – giving something back to the community” »