Sorry, that is a typo in the original question. I made sure the strings were the same in the code.
--- Original Message --- From: "Brian Schott" <[email protected]> Sent: November 22, 2014 9:44 PM To: "Programming forum" <[email protected]> Subject: Re: [Jprogramming] Sqlite addon with J802/3 Jon, This may be obvious, but your test fread and your ddcon__db strings are different. On Sat, Nov 22, 2014 at 3:50 AM, Jon Hough <[email protected]> wrote: > I am attempting to use the Sqlite addon (ddsqlite) with J and am > struggling to get a db connection. > Environment:Linux Ubuntu 14.x, J802/3Sqlite 3 > > My code so far is: > > load 'data/ddsqlite' > > > > > db =: '' conew 'jddsqlite' > > > > > [ch=. ddcon__db '~/j803/testdb' > > > this returns -1. It seems it cannot find my sqlite database, testdb. > > > Of course, the obvious question is 'did I put my database in the correct > place?'. > > > The answer is yes, as doing > > > > > ]d =: fread <'~/j803/db' > > > doesn't fail. > > > Any help appreciated. > Thanks, > > > Jon > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
