Rose-DB

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    * Clarified the return value and error handling for do_transaction().

0.753 (07.09.2009) - John Siracusa <siracusa@gmail.com>

    * Detect enum-like columns in PostgreSQL.  (RT 46214)
    * Added support for the "sslmode" DSN option for PostgreSQL.
      (Reported by foudfou)

0.752 (05.08.2009) - John Siracusa <siracusa@gmail.com>

    * Added workaround for the lack of getpwuid() on Windows.
    * SQLite column and table names are now properly unquoted when
      necessary.  (RT 45836)
    * Indicate that MySQL 5.0.45 and later supports selecting from
      a subselect.

0.751 (04.19.2009) - John Siracusa <siracusa@gmail.com>

    * Worked around a mod_perl 2 issue related to PerlOptions +Parent
      http://bit.ly/160jLN (Reported by Anton)
    * Updated test suite to consider DBD::SQLite 1.19+ non-broken.

lib/Rose/DB.pm  view on Meta::CPAN

      {
        $rosedb_devinit->fixup($class);
      }
    }
  }

  if($error || !defined $rosedb_devinit)
  {
    my $username;

    # The getpwuid() function is often(?) unimplemented in perl on Windows
    TRY:
    {
      local $@;
      eval { $username = lc getpwuid($<) };
      $error = $@;
    }

    unless($error)
    {
      $rosedb_devinit = "Rose::DB::Devel::Init::$username";

      TRY:
      {
        local $@;

lib/Rose/DB.pm  view on Meta::CPAN

=item * The ROSEDBRC file, which can modify existing data sources.

=back

=head2 ROSEDB_DEVINIT

The C<ROSEDB_DEVINIT> file or module is used during development, usually to set up data sources for a particular developer's database or project.  If the C<ROSEDB_DEVINIT> environment variable is set, it should be the name of a Perl module or file.  ...

If the C<ROSEDB_DEVINIT> environment variable is not set, or if the specified file does not exist or has errors, then it defaults to the package name C<Rose::DB::Devel::Init::username>, where "username" is the account name of the current user.

B<Note:> if the L<getpwuid()|perlfunc/getpwuid> function is unavailable (as is often the case on Windows versions of perl) then this default does not apply and the loading of the module named C<Rose::DB::Devel::Init::username> is not attempted.

The C<ROSEDB_DEVINIT> file or module may contain arbitrary Perl code which will be loaded and evaluated in the context of L<Rose::DB>.  Example:

    Rose::DB->default_domain('development');

    Rose::DB->modify_db(domain   => 'development', 
                        type     => 'main_db',
                        database => 'main',
                        username => 'jdoe',
                        password => 'mysecret');



( run in 0.269 second using v1.01-cache-2.11-cpan-8d75d55dd25 )