DBIx-PgLink
view release on metacpan or search on metacpan
<span class="string">'Sample database'</span> <span class="operator">--</span><span class="variable">comment</span>
<span class="operator">);</span>
</pre>
<p>
</p>
<h2><a name="mapping_between_local_and_remote_user">Mapping between local and remote user</a></h2>
<p>SELECT <code>dbix_pglink.set_user</code>(<em>conn_name</em>, <em>local_user</em>, <em>remote_user</em>, <em>remote_password</em>);</p>
<p>SELECT <code>dbix_pglink.delete_user</code>(<em>conn_name</em>, <em>local_user</em>);</p>
<p>This is optional when</p>
<pre>
- no authentication required (desktop database like DBF, SQLite)</pre>
<pre>
- OS-level authentication of 'postgres' account on remote server
(MSSQL with integrated security mode, PostgreSQL with sspi)</pre>
<p>There can be special <default> user entry for each connection, where <em>local_user</em> = '' (empty string).</p>
<p><strong>WARNING: Password stored as plain text</strong></p>
<p>
</p>
<h2><a name="roles">Roles</a></h2>
<p>Roles requires disconnect from remote database to apply.</p>
<p>SELECT <code>dbix_pglink.set_conn_role</code>(<em>conn_name</em>, <em>local_user</em>, <em>role_kind</em>, <em>role_name</em>, <em>position</em>, <em>replace</em>);</p>
lib/DBIx/PgLink/Manual/Usage.pod view on Meta::CPAN
=head2 Mapping between local and remote user
SELECT C<dbix_pglink.set_user>(I<conn_name>, I<local_user>, I<remote_user>, I<remote_password>);
SELECT C<dbix_pglink.delete_user>(I<conn_name>, I<local_user>);
This is optional when
- no authentication required (desktop database like DBF, SQLite)
- OS-level authentication of 'postgres' account on remote server
(MSSQL with integrated security mode, PostgreSQL with sspi)
There can be special <default> user entry for each connection, where I<local_user> = '' (empty string).
B<WARNING: Password stored as plain text>
=head2 Roles
( run in 0.685 second using v1.01-cache-2.11-cpan-299005ec8e3 )