#!/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::App > schema.sql
    qorm-generate-sql -I lib --dialect mariadb --version 10.11 --table users My::App

=head1 DESCRIPTION

Loads the ORM class and prints, with no database, the SQL its schema
definitions create (see L<DBIx::QuickORM::Manual::SchemaBuilding>).
C<--dialect> is required. The options are listed in
L<DBIx::QuickORM::Command::GenerateSQL>, and by C<--help>.

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

=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
