Skip to content

Method check_table

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: check_table()

Turkce Dokumantasyon | English Documentation

Category: Maintenance & Tools Methods
Submodule: AmberDB::Tools
Entry Type: Integrity Check & Health Diagnostics


1. Definition and Overview

check_table() analyzes a table's physical master file (.db) and all its secondary indexes (.inx, .src, .fld, .fac, .srt) for corruption, record count mismatches, or missing entries.


2. Syntax and Signature

my $report_hashref = $tools->check_table($table_id);

3. Practical Code Example

my $report = $tools->check_table("catalog_product");
if ($report->{is_healthy}) {
    print "Table integrity OK. Total records: $report->{count}\n";
} else {
    warn "Discrepancy detected: Reindexing recommended.\n";
}

4. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally