On Thursday 27 November 2008, Oleg Broytmann wrote:
> > Or maybe some parameter to the dburi (like backend) would be simpler
> > and cleaner.
>
> Either sqlite2://, sqlite3:// - or sqlite://...?backend=sqlite2.
My preference would be towards the last example using a backend parameter,
because that would avoid the need to invent new db scheme names. By using
this we can even choose between sqlite1 and 2 (which is again a hardcoded
choice if both are installed). Having new db scheme names is probably
going to be more complicated, because it would probably imply that we
have to define them as distinct backends.
Also the backend arg should be just a preference, which should override
the default choice of the most recent backend as is done now. I still
think that having the default to choose the most recent backend available
is still a good strategy, but being able to manually override it using
the backend parameter, would give full flexibility to everyone. This way
it will still work out of the box, without any change, for people who do
not care about the backend, or who only have one installed.
--
Dan
|