Re: DB parseDSN and sqlite "mode"

From: Date: Mon, 05 Jan 2004 01:57:57 +0000
Subject: Re: DB parseDSN and sqlite "mode"
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24755@lists.php.net to get a copy of this message
Daniel Convissor wrote:
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. yeah, this looks for flexible.. (and does enable future posibility of
mode=0600&somethingelse=123.... Regards Alan
The second would be a whole new ball of wax, but not that big a deal to implement. Your thoughts? Thanks, --Dan
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.dev (#24755) next »