Quiq::PostgreSql::CopyFormat - Erzeuge Daten für PostgreSQL COPY-Kommando
Quiq::Hash
use Quiq::PostgreSql::CopyFormat; # Instantiiere Objekt my $cpy = Quiq::PostgreSql::CopyFormat->new($width); # Übersetze Array in COPY-Zeile my $line = $cpy->arrayToLine(\@arr);
Die Klasse dient zur Umwandlung von Daten, so dass sie vom PostgreSQL COPY-Kommando verarbeitet werden können.
Anzahl der Kolumnen pro Zeile.
$cpy = $class->new($width);
Anahl der Kolumnen pro Zeile.
Objekt
Instantiiere ein Objekt der Klasse für die Behandlung von Daten mit $width Kolumnen und liefere eine Referenz auf dieses Objekt zurück.
$line = $cpy->arrayToLine(\@arr);
Array mit $width Komponenten.
Zeile für eine COPY-Datei (String)
Erzeuge aus den Komponenten des Arrays @arr eine Datenzeile für das PostgreSQL COPY Kommando.
1.163
Frank Seitz, http://fseitz.de/
Copyright (C) 2019 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq
CPAN shell
perl -MCPAN -e shell install Quiq
For more information on module installation, please visit the detailed CPAN module installation guide.