mirror of
https://github.com/php/doc-pl.git
synced 2026-03-24 07:02:07 +01:00
145 lines
3.7 KiB
XML
145 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: sobak Status: ready -->
|
|
<!-- $Revision$-->
|
|
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 -->
|
|
<!-- CREDITS: garbus, jarek -->
|
|
<refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>pg_lo_export</refname>
|
|
<refpurpose>Eksportuje wielki obiekt (Large Object - LO) do pliku</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>pg_lo_export</methodname>
|
|
<methodparam choice="opt"><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>oid</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>pathname</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_lo_export</function> pobiera wielki obiekt w
|
|
bazie PostgreSQL i zapisuje jego zawartość do lokalnego systemu
|
|
plików.
|
|
</para>
|
|
<para>
|
|
Użycie interfejsu wielkich obiektów (LO) wymaga zamknięcia wszystkich operacji
|
|
z nim związanych wewnątrz transakcji.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Ta funkcja była poprzednio nazwana <function>pg_loexport</function>.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>connection</parameter></term>
|
|
<listitem>
|
|
&pgsql.parameter.connection-with-unspecified-default;
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>oid</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Identyfikator wielkiego obiektu (Large Object) w bazie danych.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>pathname</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Pełna ścieżka i nazwa pliku, do którego zostanie zapisana
|
|
zawartość wielkiego obiektu w systemie plików klienta.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&pgsql.changelog.connection-object;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Przykład użycia <function>pg_lo_export</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$baza_danych = pg_connect("dbname=jacarta");
|
|
pg_query($baza_danych, "begin");
|
|
$oid = pg_lo_create($baza_danych);
|
|
$uchwyt = pg_lo_open($baza_danych, $oid, "w");
|
|
pg_lo_write($uchwyt, "large object data");
|
|
pg_lo_close($uchwyt);
|
|
pg_lo_export($baza_danych, $oid, '/tmp/lob.dat');
|
|
pg_query($baza_danych, "commit");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>pg_lo_import</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- 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
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
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
|
|
-->
|
|
|