Skip to content

Method table_count

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: table_count()

Turkce Dokumantasyon | English Documentation

Category: Core Table Methods
Submodule: AmberDB
Entry Type: Table Statistics


1. Definition and Overview

table_count() returns the total number of active records stored in the specified table. If the primary index (.inx) is present, it reads the count in $O(1)$ time; otherwise, it scans the main table.


2. Syntax and Signature

my $total = $adb->table_count($table_id);

3. Practical Code Example

my $product_count = $adb->table_count("catalog_product");
print "Total Products: $product_count\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