#!/usr/bin/env perl
use strict;
use warnings;

use DBIx::QuickORM::Command::GenerateSQL;

exit(DBIx::QuickORM::Command::GenerateSQL->run(@ARGV));

__END__

=pod

=encoding UTF-8

=head1 NAME

qorm-generate-sql - Print the SQL that creates an ORM class's schema.

=head1 SYNOPSIS

    qorm-generate-sql -I lib --pretty --dialect postgresql My::ORM > schema.sql
    qorm-generate-sql -I lib --pretty --dialect mariadb --version 10.11 --table users My::ORM

=head1 DESCRIPTION

Prints the SQL an ORM class's schema definitions create, with no database.
C<My::ORM> is the class from L<DBIx::QuickORM::Manual::DocSchema>.

B<NOTES:>

=over 4

=item C<--dialect> is required. L<DBIx::QuickORM::Command::GenerateSQL> and C<--help> list the options.

=item Exits 0 on success, 1 for an error, and 2 for bad usage.

=back

For more details see L<DBIx::QuickORM::Manual::SchemaBuilding>.

=head1 SOURCE

The source code repository for DBIx-QuickORM can be found at
L<https://github.com/exodist/DBIx-QuickORM>.

=head1 COPYRIGHT

Copyright Chad Granum E<lt>exodist7@gmail.comE<gt>.

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

See L<https://dev.perl.org/licenses/>

=cut
