Jeremy Evans wrote:
> On Apr 17, 1:26 pm, Joel VanderWerf <[email protected]> wrote:
>> My mistake... the problem isn't the extension, but it may be the
>> underscore (which I had removed in my email for simplicity):
>>
>> $ sequel sqlite://t.sqlite
>> Your database is stored in DB...
>> irb(main):001:0>
>>
>> $ mv t.sqlite t_t.sqlite
>> $ sequel sqlite://t_t.sqlite
>> URI::InvalidURIError: the scheme sqlite does not accept registry part:
>> t_t.sqlite (or bad hostname?)
>> /usr/local/lib/ruby/1.8/uri/generic.rb:195:in `initialize'
>>
>> How is the sqlite URI scheme defined? Is there a regex somewhere?
>
> The sqlite URI scheme isn't defined, I believe the URI code just uses
> a general URI scheme. I haven't looked into how it works, but since
> URI is in the standard library it should be easy to figure out. You
> can work around the problem with:
>
> sequel sqlite:///?database=t_t.sqlite
Actually:
sequel sqlite:///\?database=t_t.sqlite
(need to escape the ? on the command line).
Since sqlite is the only file based database that seems likely at this
point (in fact, are there others that sequel supports?), I'll just
define a shell script that does this:
sequel sqlite:///\?database=$*
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---