NAME

DBIO::MSSQL::Introspect::Indexes - Introspect MSSQL indexes

VERSION

version 0.900000

DESCRIPTION

Fetches index metadata via INFORMATION_SCHEMA.STATISTICS and sys.indexes (filtered to exclude PK and unique constraint indexes that are managed at table level).

METHODS

fetch

my $indexes = DBIO::MSSQL::Introspect::Indexes->fetch($dbh, $schema, $tables);

Given the tables hashref from DBIO::MSSQL::Introspect::Tables, returns a hashref keyed by table name. Each value is a hashref of index hashrefs keyed by index name with keys: index_name, columns (arrayref), is_unique, kind (clustered, nonclustered, etc).

AUTHOR

DBIO & DBIx::Class Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors Portions Copyright (C) 2005-2025 DBIx::Class Authors Based on DBIx::Class, heavily modified.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.