9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] database fileservice
@ 2000-07-31 14:33 Stephen Harris
  2000-08-04  6:15 ` Nick Gorham
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Harris @ 2000-07-31 14:33 UTC (permalink / raw)
  To: 9fans

Nick Gorham wrote:

> If you wanted any help with the port and didn't mind explaining plan 9 
> to me I wouldn't mind helping. 

Unfortunately I'm something of a beginner myself with Plan 9.  
It would probably be a good project to learn Plan 9 with, given that 
you are already familiar with ODBC.  I haven't touched ODBC in years, 
and it looked like for me it would be a learning experience for recent 
ODBC more so than for Plan9.  I'm going to try to port a database 
(postgres) instead because I've been interested in its internals anyway, 
and I think it would be nice to have a standalone database for Plan 9.

That being said, if you want to go for it I will try to help as much
as possible. Query result sets map naturally into a file heirarchy, so 
it will be a really nice thing when either port is completed, and we 
can write a database file service.

> AS to the dynamic loading, thats half the point of the driver manager, 
> you link the application to the DM and select the driver at run time.

Yep, this *may be* a real problem though, since as far as I know 
there's no way to load shared libraries in Plan 9, it just hasn't 
needed it so far (which says a lot). You could rewrite a little to 
eliminate the dynamic loading, and instead just compile in the drivers 
you want, but as you say that would defeat the purpose of the driver 
manager.  Creative solutions to this would probably be welcomed by all.

Cheers,
Steve

Everything you do from now on will be more fun - Windows 95 installation



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [9fans] database fileservice
@ 2000-07-29 17:28 Steve Harris
  2000-07-31  9:09 ` nick
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Harris @ 2000-07-29 17:28 UTC (permalink / raw)
  To: 9fans

Anthony Sorace wrote:

> along the lines of what you're doing, i'd like to
> see a service that can connect to arbitrary SQL
> servers (either remote or local) and provide a
> 9-ish interface to that, much like /net. that way

Yeah, that *would* be nice, and probably we'd have the thing quicker
that way (by just concentrating on the client side).  

I first looked at porting unixODBC and then building the fs service on 
top of that, but I didn't like how the unixODBC code looked, and 
couldn't get the will to port it.  Nothing against the code itself, 
it's probably just the nature of the thing: ODBC has gotten a lot 
more complicated than I remember, or I've gotten simpler. There were 
also some weird shared library loading things (for dynamic loading of 
drivers) and a lot of Windows-mimicking all around which I didn't want 
to wade into.
 
 Steve Harris





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-08-04  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-31 14:33 [9fans] database fileservice Stephen Harris
2000-08-04  6:15 ` Nick Gorham
2000-08-04  7:19   ` [9fans] which implementation of an fs is cleanest? Matt
  -- strict thread matches above, loose matches on Subject: below --
2000-07-29 17:28 [9fans] database fileservice Steve Harris
2000-07-31  9:09 ` nick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).