DB parseDSN and sqlite "mode"
| From: | Daniel Convissor | Date: | Mon, 05 Jan 2004 01:45:48 +0000 |
| Subject: | DB parseDSN and sqlite "mode" | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-24754@lists.php.net to get a copy of this message | ||
Hi Folks:
The SQLite class has an DSN option for "mode" which is used to chmod a new
database. The parseDSN method doesn't have a process for this yet nor
does the documentation explain the format for this parameter. So, it's
time to create it.
I'm considering two options:
* sqlite://user:pw@machine/file?mode=0600
* sqlite://user:pw@machine/file?[0600]
The first somewhat takes advantage of the existing parsing mechanisms,
though I'd have to do a small tweak. I'm leaning this way.
The second would be a whole new ball of wax, but not that big a deal to
implement.
Your thoughts?
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409