Hello Mike, thanks for the very quick response. That's very interesting. It looks (maybe I am wrong) as if you open a sqlite database file and then in your program you open a stream and use socat to connect the two together?
I'm not sure if I can use such an approach in my situation. In my case I can within my workflow open a file using the middleware open command and get a file descriptor, but then I don't understand how I can pass that descriptor to sqlite. So, somehow doing something like: sqlite3_open_v2(filedescriptor, ...) instead of the existing approach of passing the filename. But, I'm a bit confused as to how to do that. hope all is well, adil On Sun, Jun 22, 2014 at 10:10:34AM -0500, mikeegg1 wrote: > I’m working on accessing sqlite3 from a process/program that is not able to > access sqlite3.a by using sockets through socat(1). > > Mike > > On Jun 22, 2014, at 9:47 AM, Adil Hasan <paradox2...@gmail.com> wrote: > > > Hello, > > I would like to add sqlite to a workflow. But, I cannot directly open the > > database in C using the filename as the application I'm using places a layer > > inbetween the filesystem and my workflow. I can open the file with > > a command from the middle-layer and get a file descriptor. Is there a way > > that I can just pass the file descriptor to the open command instead > > of the database filename? > > > > I guess that maybe I should create a shim, but I'm not 100% clear on just > > how > > to do that. Does anyone have any suggestions? My naive guess is that I need > > to create some structure, but I can't figure out just how to do that (I'm > > afraid that my C isn't fantastic). > > > > Many thanks for your help, > > adil > > _______________________________________________ > > sqlite-users mailing list > > sqlite-users@sqlite.org > > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users