Table of Contents

TAureliusConnection.CreateConnection Method

Creates and returns a new IDBConnection interface configured according to the current adapter or driver settings.

Remarks

Each call creates an independent connection. In adapter mode, the adapted connection component is cloned using the strategy defined by CloningMode; the clone is owned by the returned IDBConnection and is destroyed when the interface is released. In driver mode a new connection is opened using the parameters in Params. An exception is raised if neither AdapterName nor DriverName is set.

Syntax

Unit: Aurelius.Comp.Connection

function TAureliusConnection.CreateConnection: IDBConnection;

See also