From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] Getting started in Plan9 - help MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20020121203946.49EA219A27@mail.cse.psu.edu> Date: Mon, 21 Jan 2002 15:39:45 -0500 Topicbox-Message-UUID: 40005844-eaca-11e9-9e20-41e7f4b1d025 I think it might be neat to build a small number of little programs that parse and reemit sql queries. Thus you could use normal shell pipelines to do database queries but since you're passing _queries_ and not _output_ through the pipes, you still reap the benefits of query optimization. Just like the old /acme/edit scripts. I don't remember enough of the SQL syntax to reparse your query into an exact shell pipeline, but the idea is you could do something like sql/grep 'Car%' pages.title | sql/join section pages.idx | sql/p Sql/p would behave like the acme p, actually executing the query to produce output. Of course, if there isn't much data, moving it into the file system might be an even better solution. Russ