dotConnect for PostgreSQL Documentation
Devart.Common Namespace / DbScript Class / Open Method / Open(Stream) Method
Stream to read SQL statements from.

In This Topic
Open(Stream) Method
In This Topic
Prepares a stream to be executed as SQL script.
Syntax
'Declaration
 
Public Overloads Sub Open( _
   ByVal stream As Stream _
) 
 

Parameters

stream
Stream to read SQL statements from.
Remarks

Call to this method makes consequent invocation of Execute read SQL script from specified stream.

This Open(String) method, as well as its overloads, does not load the text into memory or populate the Statements collection. So it is much more efficient to use Open(String) methods from performance and memory consumption points of view.

Open(Stream) does not change current position in the stream.

See Also