Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

DbPack

DbPack()

Historical reference: physically removes records marked for deletion.

DbPackAdvPL
01 · OVERVIEW

Overview

The eAdvpl guide lists parameterless DbPack() and says it physically removes records marked for deletion. No current function page was located confirming its RDD/release contract or return. This remains under review and is not a maintenance procedure. A filter must not be interpreted as a safe operation boundary. The example only stores a historical invocation in an unexecuted block.

02 · SYNTAX

Syntax

DbPack()

Return value

Not established by the consulted source.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed336()
    Local bHistorical
    // Prepare only; do not call Eval in this example.
    bHistorical := {|| EDTRB->(DbPack())}
Return Nil
Expected result

Block created without changing records. Function availability still requires environment validation. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Validate API, exclusivity and recovery for the applicable RDD/release. Do not experiment on standard or shared tables.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de referência eAdvpl, s.d., seção 2.10 (DbPack) / 2.12 (DbZap). Referência histórica; autoria não confirmada. Accessed on 2026-10-26.
  2. TOTVS. PACK is not supported with temporary indexes. TDN. Accessed on 2026-10-26.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha