2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:37:21 +00:00
|
|
|
<!-- $Revision$ -->
|
2005-09-04 19:39:32 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<reference xml:id="ref.pdo-sqlite" xmlns="http://docbook.org/ns/docbook">
|
2013-05-23 17:38:21 +00:00
|
|
|
<?phpdoc extension-membership="bundledexternal" ?>
|
2005-08-12 02:03:50 +00:00
|
|
|
<title>SQLite Functions (PDO_SQLITE)</title>
|
2005-08-20 23:14:57 +00:00
|
|
|
<titleabbrev>SQLite (PDO)</titleabbrev>
|
2005-08-12 02:03:50 +00:00
|
|
|
<partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<section xml:id="pdo-sqlite.intro">
|
2005-08-12 02:03:50 +00:00
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
2007-12-31 15:43:38 +00:00
|
|
|
PDO_SQLITE is a driver that implements the <link linkend="intro.pdo">PHP
|
2005-09-11 06:17:09 +00:00
|
|
|
Data Objects (PDO) interface</link> to enable access to SQLite 3 databases.
|
2005-09-09 04:10:15 +00:00
|
|
|
</para>
|
2008-11-07 10:08:17 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
PDO_SQLITE allows using strings apart from streams together with
|
|
|
|
<constant>PDO::PARAM_LOB</constant>.
|
|
|
|
</para>
|
|
|
|
</note>
|
2005-08-12 02:03:50 +00:00
|
|
|
</section>
|
2011-01-26 22:48:38 +00:00
|
|
|
|
|
|
|
&reference.pdo-sqlite.configure;
|
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
</partintro>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="ref.pdo-sqlite.connection">
|
2005-08-12 02:03:50 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>PDO_SQLITE DSN</refname>
|
2005-08-20 23:14:57 +00:00
|
|
|
<refpurpose>Connecting to SQLite databases</refpurpose>
|
2005-08-12 02:03:50 +00:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
|
|
|
<para>
|
|
|
|
The PDO_SQLITE Data Source Name (DSN) is composed of the following elements:
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term>DSN prefix (SQLite 3)</term>
|
|
|
|
<listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
<para>
|
|
|
|
The DSN prefix is <userinput>sqlite:</userinput>.
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2020-10-22 13:08:46 +00:00
|
|
|
To access a database on disk, the absolute path has to be appended to the
|
2005-08-12 03:31:18 +00:00
|
|
|
DSN prefix.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2020-10-22 13:08:46 +00:00
|
|
|
To create a database in memory, <literal>:memory:</literal> has to be appended
|
2005-08-12 03:31:18 +00:00
|
|
|
to the DSN prefix.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2020-10-22 13:08:46 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
If the DSN consists of the DSN prefix only, a temporary database is used,
|
|
|
|
which is deleted when the connection is closed.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2005-08-12 03:31:18 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
2005-08-12 02:03:50 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>PDO_SQLITE DSN examples</title>
|
|
|
|
<para>
|
|
|
|
The following examples show PDO_SQLITE DSN for connecting to
|
|
|
|
SQLite databases:
|
2007-07-04 23:38:04 +00:00
|
|
|
<programlisting>
|
|
|
|
<![CDATA[
|
2005-08-12 02:03:50 +00:00
|
|
|
sqlite:/opt/databases/mydb.sq3
|
2005-09-09 04:10:15 +00:00
|
|
|
sqlite::memory:
|
2020-10-22 13:08:46 +00:00
|
|
|
sqlite:
|
2005-08-12 02:03:50 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
2012-01-12 16:05:16 +00:00
|
|
|
&reference.pdo-sqlite.entities.PDO;
|
2005-09-10 15:44:37 +00:00
|
|
|
|
2005-08-12 02:03:50 +00:00
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2005-08-12 02:03:50 +00:00
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|