Re: Are there Sql backends that return an array from big_query()?

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
Henrik Grubbstr?m wrote:
>>I'm toying with something like this:

>>Instantiate the .pike programs in the Sql.pmod directory using:
>[...]
>>As before, this to make sure that we have a driver.

>>Then, instead of using the compiled program find_dbm returns, we do
>>something along the lines of:

>>program realclass =
>>compile_string("inherit Sql.SQL;inherit Sql."+program_name+";");

>I don't see a reason not to have the providers inherit the base API
>directly, now that it is reasonably easy to inherit Pike-code from
>modules written in C (cf Nettle and __builtin.Nettle).

Erm, yes, KISS.  All the Sql.pmod/*.pike files could simply be
made to inherit the Sql.SQL class.  This is possible at the pike
level (obviously).  Well, that makes the change rather trivial.
In fact so trivial that it almost seems like I must be overlooking
something; we could have done this 10 years ago.
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.