note 105350 added to ref.pdo-sqlite.connection
| From: | frederic dot glorieux at diple dot net | Date: | Wed, 10 Aug 2011 22:20:56 +0000 |
| Subject: | note 105350 added to ref.pdo-sqlite.connection | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182411@lists.php.net to get a copy of this message | ||
In memory sqlite has some limitations. The memory space could be the request, the session, but no
way seems documented to share a base in memory among users.
For a request, open your base with the code
$pdo = new PDO( 'sqlite::memory:');
and your base will disapear on next request.
For session persistency
$pdo = new PDO(
'sqlite::memory:',
null,
null,
array(PDO::ATTR_PERSISTENT => true)
);
----
Server IP: 69.147.83.197
Probable Submitter: 81.49.118.38
----
Manual Page -- http://www.php.net/manual/en/ref.pdo-sqlite.connection.php
Edit -- https://master.php.net/note/edit/105350
Del: integrated -- https://master.php.net/note/delete/105350/integrated
Del: useless -- https://master.php.net/note/delete/105350/useless
Del: bad code -- https://master.php.net/note/delete/105350/bad+code
Del: spam -- https://master.php.net/note/delete/105350/spam
Del: non-english -- https://master.php.net/note/delete/105350/non-english
Del: in docs -- https://master.php.net/note/delete/105350/in+docs
Del: other reasons-- https://master.php.net/note/delete/105350
Reject -- https://master.php.net/note/reject/105350
Search -- https://master.php.net/manage/user-notes.php