Closed nsh87 closed 9 years ago
Thanks for the report. Indeed I had never come across db connection objects in R so far, so that's probably why there is this implementation issue. Hope I can fix this by the end of this week.
Hi Nikhil, I've uploaded a new version (0.8.2) to pypi, this should fix your problem.
Works perfectly now. I like the output showing the dbname
of the connection. Thanks! My output is a bit wonky because I'm operating over Fabric, but essentially:
[127.0.0.1:2200] out: >>> con.eval("c <- dbConnect(RSQLite::SQLite(), dbname='testdb')")
[127.0.0.1:2200] out: <S4 attrs=[('Id', 22), ('dbname', array(['testdb'],
[127.0.0.1:2200] out: dtype='|S59')), ('loadable.extensions', array([ True], dtype=bool)), ('flags', array([6], dtype=int32)), ('vfs', array([''],
[127.0.0.1:2200] out: dtype='|S1')), ('class', AttrArray(['SQLiteConnection'],
[127.0.0.1:2200] out: dtype='|S16', attr={'package': array(['RSQLite'],
[127.0.0.1:2200] out: dtype='|S7')}))]>
Thanks for this very useful package, first of all. I can only assume this is a parser error based on the traceback, if it is not sorry.
Just for reference, the same thing in R would be:
I could imagine a parser error on
<SQLiteConnection>
, but note that there is no output from the command generating the error,con <- dbConnect(RSQLite::SQLite(), dbname='testdb')
.