Skip to documentation
SLOP

tiny.sql.CatalogRelationStats

Reference tiny.sql CatalogRelationStats

Defined in catalog.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callscatalogRelationStats
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/sql/src/catalog.zig:151

zig
pub const RelationStats = struct {    allocator: Allocator,    table_root_page: u32,    table: tree.Summary,    indexes: []IndexStats,    pub fn deinit(self: *RelationStats) void {        for (self.indexes) |*index_stats| {            self.allocator.free(index_stats.name);            freeIndexDistribution(self.allocator, index_stats.distribution);        }        self.allocator.free(self.indexes);        self.* = undefined;    }    pub fn index(self: *const RelationStats, name: []const u8) ?*const IndexStats {        for (self.indexes) |*index_stats| {            if (std.mem.eql(u8, index_stats.name, name)) return index_stats;        }        return null;    }};

Source: lib/sql/src/root.zig:72

zig
pub const CatalogRelationStats = catalog.RelationStats;
Called byCallscatalog.PreparedRelationStatsdeinitprivate sourcelib.sql.src.catalogfreeIndexDistributionCatalogRelationStatsdeinit
Static calls · unresolved targets: 1 · external targets: 0.

Audit

Definitions3
Public names6
Members4
Version26.7.0
Revisiondaab053ee433