PostgresDAC

TPSQLDump.Methods.DumpToStream

Previous Next

Writes the database dump to a stream object.

Syntax:

procedure DumpToStream(Stream: TStream); overload;
procedure DumpToStream(Stream: TStream; Log: TStrings); overload;
procedure DumpToStream(Stream: TStream; LogFileName: string); overload;

Description:

Call DumpToStream to save the produced dump to the stream specified by the Stream parameter. If the stream is a file stream, DumpToStream does the same thing as DumpToFile, except the application must create and destroy the file stream.

It's better to use DumpToFile(const FileName, LogFileName: string) procedure call, because in any case output file and file for logging will be created due to the call agreements with pg_dump.dll library.