mirror of
https://github.com/php/doc-pt_br.git
synced 2026-04-26 01:28:05 +02:00
60f9172f99
* inclusão dos arquivos originais com revisão atualizada * tradução em reference/pgsql/functions * removida tradução equivocada em tags * removida tradução indevida de tag * Delete reference/pgsql/functions/pg-connection-busy.old * Delete reference/pgsql/functions/pg-connection-reset.old * Delete reference/pgsql/functions/pg-convert.old * Delete reference/pgsql/functions/pg-fetch-assoc.old * Delete reference/pgsql/functions/pg-field-name.old * Delete reference/pgsql/functions/pg-meta-data.old * Delete reference/pgsql/functions/pg-send-query.old * Update pg-field-num.xml * Update pg-unescape-bytea.xml * Update pg-escape-bytea.xml * Update pg-convert.xml * Update pg-result-status.xml * Update pg-pconnect.xml * Update pg-parameter-status.xml * Update pg-set-client-encoding.xml * tradução de pg-affected-rows
142 lines
3.6 KiB
XML
142 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: c2eca73ef79ebe78cebb34053e41b565af504c4f Maintainer: fernandowobeto Status: ready --><!-- CREDITS: fernandowobeto -->
|
|
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.6 -->
|
|
<refentry xml:id="function.pg-lo-export" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>pg_lo_export</refname>
|
|
<refpurpose>Exporta um objeto grande para arquivo</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> pega um objeto grande em um
|
|
banco de dados PostgreSQL e salva seu conteúdo em um arquivo no sistema de
|
|
arquivos local.
|
|
</para>
|
|
<para>
|
|
Para usar a interface de objeto grande, é necessário
|
|
incluí-la em um bloco de transação.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Esta função costumava ser chamada de <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>
|
|
O <varname>OID</varname> do objeto grande no banco de dados.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>pathname</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
O caminho completo e o nome do arquivo no qual gravar o
|
|
objeto grande no sistema de arquivos do cliente.
|
|
</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>Exemplo de <function>pg_lo_export</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$database = pg_connect("dbname=jacarta");
|
|
pg_query($database, "begin");
|
|
$oid = pg_lo_create($database);
|
|
$handle = pg_lo_open($database, $oid, "w");
|
|
pg_lo_write($handle, "large object data");
|
|
pg_lo_close($handle);
|
|
pg_lo_export($database, $oid, '/tmp/lob.dat');
|
|
pg_query($database, "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
|
|
-->
|