Received: from Kitten.mcs.com (Kitten.mcs.com [192.160.127.90]) by hub.org (8.8.8/8.7.5) with ESMTP id NAA15972 for ; Fri, 6 Mar 1998 13:07:45 -0500 (EST) Received: from Mercury.mcs.net (les@Mercury.mcs.net [192.160.127.80]) by Kitten.mcs.com (8.8.7/8.8.2) with ESMTP id MAA08976; Fri, 6 Mar 1998 12:07:41 -0600 (CST) Received: (from les@localhost) by Mercury.mcs.net (8.8.7/8.8.2) id MAA05889; Fri, 6 Mar 1998 12:07:40 -0600 (CST) From: Leslie Mikesell Message-Id: <199803061807.MAA05889@Mercury.mcs.net> Subject: Re: [QUESTIONS] ndbm emulation library? To: scrappy@hub.org (The Hermit Hacker) Date: Fri, 6 Mar 1998 12:07:40 -0600 (CST) Cc: les@Mcs.Net, pgsql-interfaces@postgreSQL.org In-Reply-To: from "The Hermit Hacker" at Mar 6, 98 12:39:29 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text > > > I'm confused, but...why would you want to do this vs using the > > > standard libpq interface? > > > > I've already got apps using ndbm (and getting occasional file > > corruption). I'd like to fix this and get the benefits of > > multi-host access and the ability to write new code to access > > the same data in all the ways possible with pgsql. If we had > > a wrapper around libpq with ndbm emulation it would be as simple > > as re-linking my old apps and migrating the data. > > So you basically want to "hide" the SQL commands behind ndbm > compatible function calls? Have you looked into what is involved? Do you > want to work on an 'interfaces/ndbm' library? *raised eyebrows* I was hoping someone had already done it. Other than generalizing the dbm_open() routine it seems pretty straightforward and it would take the same amount of work to convert a single app to use sql directly. Les Mikesell les@mcs.com