mirror of
https://github.com/php/doc-pl.git
synced 2026-03-25 23:52:07 +01:00
145 lines
4.0 KiB
XML
145 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: d0ae617680e58bde494f9d58d9c553e0a6944418 Maintainer: sobak Status: ready -->
|
|
<!-- $Revision$ -->
|
|
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 -->
|
|
<!-- CREDITS: garbus, jarek -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.pg-lo-import">
|
|
<refnamediv>
|
|
<refname>pg_lo_import</refname>
|
|
<refpurpose>Importuje wielki obiekt (Large Object, LO) z pliku</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int|string|false</type><methodname>pg_lo_import</methodname>
|
|
<methodparam choice="opt"><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>pathname</parameter></methodparam>
|
|
<methodparam choice="opt"><type>mixed</type><parameter>object_id</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_lo_import</function> kreuje nowy Wielki Obiekt (LO)
|
|
w bazie danych, używając pliku w systemie plików jako jego danych
|
|
źródłowych.
|
|
</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_loimport</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>pathname</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Pełna ścieżka z nazwą pliku znajdującego się w systemie plików
|
|
klienta, z którego zostanie przeczytany LO.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>object_id</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Jeśli <parameter>object_id</parameter> został podany, funkcja
|
|
spróbuje stworzyć wielki obiekt o podanym unikalnym identyfikatorze, w przeciwnym razie
|
|
serwer przydzieli dowolny identyfikator. Parametr
|
|
jest uzależniony od mechanizmów działania, które jako pierwsze
|
|
pojawiły się w PostgreSQL 8.1.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Identyfikator <varname>OID</varname> nowo stworzonego LO&return.falseforfailure;.
|
|
</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><function>pg_lo_import</function> - przykład</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$baza_danych = pg_connect("dbname=warszawa");
|
|
pg_query($baza_danych, "begin");
|
|
$oid = pg_lo_import($baza_danych, '/tmp/lob.dat');
|
|
pg_query($baza_danych, "commit");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>pg_lo_export</function></member>
|
|
<member><function>pg_lo_open</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
|
|
-->
|