Permalink
Browse files

Bump version, regenerate README

  • Loading branch information...
Max Maischein
Max Maischein committed Nov 11, 2010
1 parent 1719569 commit d34cf7dec5cb4ec51ed787075d3fbf5325a8dacd
Showing with 63 additions and 4 deletions.
  1. +29 −1 README
  2. +33 −2 README.mkdn
  3. +1 −1 lib/DBIx/RunSQL.pm
View
30 README
@@ -30,7 +30,7 @@ METHODS
This allows to create SQL-as-programs as follows:
- #!/usr/bin/perl -w -MDBIx::RunSQL=run
+ #!/usr/bin/perl -w -MDBIx::RunSQL=create
create table ...
* `dsn', `user', `password' - DBI parameters for connecting to the DB
@@ -86,6 +86,25 @@ PROGRAMMER USAGE
=cut
+ `DBIx::RunSQL->handle_command_line'
+
+ Parses the command line. This is a convenience method, which passes the
+ following command line arguments to `->create':
+
+ --user
+ --password
+ --dsn
+ --sql
+ --verbose
+
+ In addition, it handles the following switches through Pod::Usage:
+
+ --help
+ --man
+
+ See also the section PROGRAMMER USAGE for a sample program to set up a
+ database from an SQL file.
+
NOTES
If you find yourself wanting to write SELECT statements, consider
looking at Querylet instead, which is geared towards that and even has
@@ -98,3 +117,12 @@ NOTES
SEE ALSO
ORLite::Migrate
+AUTHOR
+ Max Maischein `corion@cpan.org'
+
+COPYRIGHT (c)
+ Copyright 2009-2010 by Max Maischein `corion@cpan.org'.
+
+LICENSE
+ This module is released under the same terms as Perl itself.
+
View
@@ -36,7 +36,7 @@ be read until exhaustion. __not implemented__
This allows to create SQL-as-programs as follows:
- #!/usr/bin/perl -w -MDBIx::RunSQL=run
+ #!/usr/bin/perl -w -MDBIx::RunSQL=create
create table ...
- *
@@ -99,6 +99,25 @@ looks like this:
=cut
+## C<< DBIx::RunSQL->handle_command_line >>
+
+Parses the command line. This is a convenience method, which
+passes the following command line arguments to `->create`:
+
+ --user
+ --password
+ --dsn
+ --sql
+ --verbose
+
+In addition, it handles the following switches through [Pod::Usage](http://search.cpan.org/search?mode=module&query=Pod::Usage):
+
+ --help
+ --man
+
+See also the section PROGRAMMER USAGE for a sample program to set
+up a database from an SQL file.
+
# NOTES
If you find yourself wanting to write SELECT statements,
@@ -111,4 +130,16 @@ or potentially [DBIx::SQLHandler](http://search.cpan.org/search?mode=module&quer
# SEE ALSO
-[ORLite::Migrate](http://search.cpan.org/search?mode=module&query=ORLite::Migrate)
+[ORLite::Migrate](http://search.cpan.org/search?mode=module&query=ORLite::Migrate)
+
+# AUTHOR
+
+Max Maischein `corion@cpan.org`
+
+# COPYRIGHT (c)
+
+Copyright 2009-2010 by Max Maischein `corion@cpan.org`.
+
+# LICENSE
+
+This module is released under the same terms as Perl itself.
View
@@ -3,7 +3,7 @@ use strict;
use DBI;
use vars qw($VERSION);
-$VERSION = '0.03';
+$VERSION = '0.04';
=head1 NAME

0 comments on commit d34cf7d

Please sign in to comment.