News for hackers. Stuff that matters.
Re:Toward A Database URI Standard by zzzeek on Thursday December 12, 2013 @01:52PM (#6896253)
Everything was great here until the post suggested...let's have two formats? All the examples mentioned (one of which is my own) use a strict RFC-1738 style, and the "//" is required, including for filesystem paths. RFC-1738 already provides the spec and as all the linked examples illustrate, it's all we need. Why the second format omitting the so-called "authority part"?

edit: wow rfc1738 is like two rfcs ago, we're up to rfc3986 now. rock!

Re:Toward A Database URI Standard by sp332 on Thursday December 12, 2013 @02:10PM (#6896362)
For sqlite, there isn't really a host name. It's just a file path. What would that look like if you could only use the first format?
Re:Toward A Database URI Standard by PeterWhittaker on Thursday December 12, 2013 @02:54PM (#6896685)
Would it not be

file:///path

as per RFC 1738?

Re:Toward A Database URI Standard by sp332 on Thursday December 12, 2013 @03:01PM (#6896752)
I guess that could work.

  file:///path?foreign_keys=ON;journal_mode=WAL
Re:Toward A Database URI Standard by justtheory on Thursday December 12, 2013 @05:38PM (#6897768)
I would be okay with having just one one, though in principal I don't see much difference.