NAME

DBIO::MSSQL::DDL - Generate MSSQL DDL from DBIO Result classes

VERSION

version 0.900000

DESCRIPTION

DBIO::MSSQL::DDL generates a MSSQL DDL script from a DBIO::Schema class hierarchy. It is the desired-state side of the test-deploy-and- compare strategy used by DBIO::MSSQL::Deploy.

my $ddl = DBIO::MSSQL::DDL->install_ddl($schema_class_or_instance);

The output is plain SQL, suitable for executing one statement at a time against a fresh MSSQL database. Emits CREATE TABLE (inline columns, primary key, unique, foreign keys) and CREATE INDEX.

METHODS

install_ddl

my $ddl = DBIO::MSSQL::DDL->install_ddl($schema);

Returns the full installation DDL as a single string.

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.