dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
dkubb|away has joined #datamapper
dkubb has quit [Ping timeout: 245 seconds]
dkubb|away is now known as dkubb
zombor has joined #datamapper
mbj has joined #datamapper
dkubb has quit [Ping timeout: 245 seconds]
lfox has joined #datamapper
akasper has quit [Quit: Leaving.]
nwmcsween__ has joined #datamapper
nwmcsween_ has quit [Ping timeout: 252 seconds]
mbj has quit [Quit: leaving]
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
rsim has joined #datamapper
rsim has quit [Client Quit]
g0bl1n has quit [Ping timeout: 246 seconds]
zombor has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
lfox has joined #datamapper
Spockz has quit [Ping timeout: 252 seconds]
alessandro has joined #datamapper
gadgetoid has quit [Ping timeout: 260 seconds]
brianpWins has joined #datamapper
nwmcsween__ has quit [Quit: nwmcsween__]
brianpWins has quit [Remote host closed the connection]
zombor has quit [Read error: Connection reset by peer]
zombor_ has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
akasper has joined #datamapper
kenphused has joined #datamapper
g0bl1n has joined #datamapper
kenphused has left #datamapper ["I'll get back to you guys on that"]
Cinchy_ has quit [Remote host closed the connection]
Cinchy_ has joined #datamapper
Frost has joined #datamapper
<Frost>
I'm trying to base a (read-only) DataMapper::Resource off a database view, and it seems to work fine, except when I try to run my test code, because when trying to create said view in a Sqlite in-memory db I get an error saying that the tables it depends on doesn't exist.
<Frost>
It depends on two models with a many-to-many relationship between them, so is there some way to make sure DM generates the tables needed before executing the view creating query?
<Cinchy_>
[gist] gist:5c1da307b901f8a7508f (at gist.github.com, dbussink on 2013-11-21 21:54)
<dbussink>
seems to work fine here :s
<tpitale>
let me see if I drop a table if I get that
<tpitale>
okay, nope, didn't get that
<tpitale>
did you need to use the jdbc prefix?
<tpitale>
maybe I need some other library for do_jdbc to work?
<tpitale>
or is that standard in the jdk …
<tpitale>
jdbc must be included in the jdk
<tpitale>
alright, I'm calling it
<tpitale>
no jruby for me
<tpitale>
for now
<tpitale>
thanks for all your help dbussink, dkubb, and mbj
<dkubb>
tpitale: sorry I couldn't help more
<dkubb>
we've been thinking about creating a vm on the ruby side that peolpe can spin up for testing and dev, so that at least when debugging issues like this we can do it on a known good system
<dkubb>
s/ruby side/rom side/
<tpitale>
I'll try to build something with packer/vagrant and nothing but jdk and jruby to see if I can get this example to work
<tpitale>
it's gotta be something else on my computer
<dkubb>
I've been using vagrant a lot, but I haven't used packer yet
<dbussink>
tpitale: i haven't done anything special
<dbussink>
tpitale: it's a bit older jruby, 1.7.4, i could try updating to see if that changes anything
<dbussink>
just did a bundle install and ran it
<dbussink>
tpitale: also no jdbc prefix
<dbussink>
tpitale: just tried 1.7.8, works fine :s