Improving the database doc.

This commit is contained in:
sergiotarxz 2022-03-17 18:18:30 +01:00
parent 823c0633fb
commit cce5201ddd
2 changed files with 9 additions and 5 deletions

View File

@ -30,8 +30,10 @@
<h1 id="SYNOPSIS">SYNOPSIS</h1> <h1 id="SYNOPSIS">SYNOPSIS</h1>
<pre><code>my $config = <pre><code>my $peace = Peace-&gt;new;
$self-&gt;plugin( my $home = $ENV{HOME};
my $config =
$peace-&gt;plugin(
JSONConfig =&gt; { JSONConfig =&gt; {
file =&gt; &quot;$home/.config/peace/peace.conf&quot; file =&gt; &quot;$home/.config/peace/peace.conf&quot;
} }
@ -60,7 +62,7 @@ my $dbh = Peace::DB-&gt;dbh( config =&gt; $config );</code></pre>
<h1 id="SEE-ALSO">SEE ALSO</h1> <h1 id="SEE-ALSO">SEE ALSO</h1>
<p><a>DBI</a>, <a>DBD::Pg</a></p> <p><a>DBI</a>, <a>DBD::Pg</a>, <a href="/lib/Peace.html">Peace</a></p>
</body> </body>

View File

@ -165,8 +165,10 @@ Peace::DB - Database handler generator for the Peace shop.
=head1 SYNOPSIS =head1 SYNOPSIS
my $peace = Peace->new;
my $home = $ENV{HOME};
my $config = my $config =
$self->plugin( $peace->plugin(
JSONConfig => { JSONConfig => {
file => "$home/.config/peace/peace.conf" file => "$home/.config/peace/peace.conf"
} }
@ -197,4 +199,4 @@ Runs the migrations manually.
=head1 SEE ALSO =head1 SEE ALSO
L<DBI>, L<DBD::Pg> L<DBI>, L<DBD::Pg>, L<Peace>