Represents a connection to a database.

Methods

Name

Description

CommittableTransaction BeginReadUncommittedTransaction()

Creates a OutSystems.RuntimePublic.Db.CommittableTransaction with the transaction isolation level set to read uncommitted.

CommittableTransaction BeginTransaction()

Creates a OutSystems.RuntimePublic.Db.CommittableTransaction with the transaction isolation level set to read committed.

void Close()

Closes the connection to the database.

Command CreateCommand(string sql)

Creates a command that does not have an associated transaction.

Command CreateCommand()

Creates an empty command that does not have an associated transaction.

void Dispose()

Closes the connection and frees the resources used by this object.

IDbConnection GetDriverConnection()

Returns the native connection object used by the stack in which the application is running.  It allows to reuse existing code that receives a native connection object as parameter.

bool IsClosed()

Checks if the connection is closed.

Methods

Name

Description

CommittableTransaction beginReadUncommittedTransaction()

Creates a outsystems.runtimepublic.db.CommittableTransaction with the transaction isolation level set to read uncommitted.

CommittableTransaction beginTransaction()

Creates a outsystems.runtimepublic.db.CommittableTransaction with the transaction isolation level set to read committed.

void close()

Closes the connection to the database.

Command createCommand(String sql)

Creates a command that does not have an associated transaction.

Command createCommand()

Creates an empty command that does not have an associated transaction.

void dispose()

Closes the connection and frees the resources used by this object.

Connection GetDriverConnection()

Returns the native connection object used by the stack in which the application is running.  It allows to reuse existing code that receives a native connection object as parameter.

boolean isClosed()

Checks if the connection is closed.

See Also

Overview of RuntimePublic.Db API | About APIs