Skip to content

DB Close

Type: db-close  ·  Package: Database Activities v1.0.0

Close the connection to the database and release the resources. It is the partner of DB Connect when you work without body (Option B of session model).

Close the connection associated with the session. After this, the session can no longer be used. Leaving connections open consumes database server resources, so it is important to close them.

Ninguno.

ParameterEditorDescription
sessionsessionThe session returned by DB Connect.
DB Connect provider = mysql connectionString = = credential("db").ToPlainText() → output: db
DB Query session = = db sql = "SELECT * FROM productos" → output: productos
DB Close session = = db
  • DB Connect — open the connection.
  • Try / Catch — close on finally to avoid leaving open connections.