NAME

DBIx::Fast::Schema - Schema introspection for DBIx::Fast

DESCRIPTION

Provides database schema introspection capabilities including listing tables, retrieving index information, primary keys, column details, and table size statistics. Supports MariaDB/MySQL, PostgreSQL, and SQLite drivers.

METHODS

tables

Reader accessor that returns the cached hash of table names.

clear_cache

Clears the internal table name cache.

get_indexes

my $indexes = $schema->get_indexes($table);

Returns an arrayref of hashrefs describing all indexes on the given table.

primary_keys

my $keys = $schema->primary_keys($table);

Returns an arrayref of column names that form the primary key of the given table.

table_info

my $info = $schema->table_info($table);

Returns an arrayref of hashrefs with column metadata (name, type, length) for the given table.

table_size

my $size = $schema->table_size($table);

Returns a hashref with rows and size_bytes for the given table.

AUTHOR

Harun Delgado

LICENSE

This is free software under the Artistic License 2.0.