Permalink
Commits on Feb 21, 2011
  1. removed several trailing whitespace characters

    Alan Haggai Alavi committed Feb 21, 2011
  2. set POD encoding to UTF-8

    Alan Haggai Alavi committed Feb 21, 2011
  3. It's ":memory:" not ":memory".

    Correct DB name for SQLite memory-only DB.
    
    This should fix test failures on Windows, e.g.:
    http://www.cpantesters.org/cpan/report/d5987aa6-6d07-1014-91a2-7f5be4275be9
    bigpresh committed Feb 21, 2011
Commits on Feb 18, 2011
  1. Bugfix fetching charset setting, POD fix.

    Fetch application's charset setting properly (need to use Dancer::Config).
    
    Silly POD typo fix.
    
    Add a debug message to log when we add one of the options to enable UTF-8
    support.
    bigpresh committed Feb 18, 2011
  2. Add new auto UTF-8 support feature.

    This resolves RT #65779 (also GH-6).
    
    I'll release this as a developer release first and encourage testing.
    
    Currently, I think it should be enabled by default if you're using charset
    'UTF-8', as "Just Working" is the behaviour users would expect.  There is
    however a config setting to disable it, should that be necessary for any reason.
    bigpresh committed Feb 18, 2011
  3. Bump version to 1.11 ready for release.

    Preparing to release 1.11 with bugfix for RT #65825 from Michel Stiller - thanks
    again.
    
    Regenerating README with pod2readme.
    bigpresh committed Feb 18, 2011
  4. More fixes for quick_select.

    bigpresh committed Feb 18, 2011
Commits on Feb 17, 2011
  1. Add where clause when using quick_select.

    I would have sworn that this worked when I tested it.
    
    I think I need to develop stricter tests.
    
    Thanks to Michael Stiller for reporting in RT #65825
    bigpresh committed Feb 17, 2011
  2. Documentation fix.

    Thanks to Michael Stiller for reporting in RT #65825
    bigpresh committed Feb 17, 2011
Commits on Feb 12, 2011
  1. Another minor typo in docs.

    bigpresh committed Feb 12, 2011
  2. Mispaste in docs.

    bigpresh committed Feb 12, 2011
Commits on Feb 11, 2011
  1. Include quick_select example in synopsis.

    I want to make it clear at a glance that D::P::Database not only manages the
    connection but also makes simple queries ridiculously easy.
    bigpresh committed Feb 11, 2011
  2. Preparing to release 1.10.

    Updating Changes, bumping version in Database.pm.
    bigpresh committed Feb 11, 2011
  3. Update acknowledgements section

    bigpresh committed Feb 11, 2011
  4. Test quick_select

    bigpresh committed Feb 11, 2011
  5. Fix bug with quick_insert() on MySQL/Postgres.

    This annoying little bug caused SQL which MySQL and Postgres didn't accept; it
    did work fine for SQLite databases, though.
    
    Thanks to both Christian Sánchez and Michael Stiller, who both provided very
    helpful reports of this problem, along with patches.
    
    This is why I love open source development - knowing that people I've never met,
    from Venezuela and Germany, respectively, are both using my code, and took the
    time to provide useful bug reports, along with fixes.  Thanks guys!
    bigpresh committed Feb 11, 2011
Commits on Feb 10, 2011
  1. Stupid mistake. (Fix where clause validation.)

    Require where clause conditions for select, not insert.
    bigpresh committed Feb 10, 2011
  2. Add quick_select; re-work documentation.

    Adding quick_select() convenience method.  It takes a table name and hashref of
    WHERE params, and returns:
    
    - in scalar context, the first matching row as a hashref
    - in list context, a list of all matching rows, as hashrefs.
    
    So, it can DWYM in cases like:
    
        my $employee = database->quick_select('employees', { id => $emp_id });
        say "Hello, " .  $employee->{name};
    
        my @products = database->quick_select('products', { category => $cat_id });
        for my $product (@products) {
            say "Why not buy a nice shiny " . $product->{name};
        }
    bigpresh committed Feb 10, 2011
  3. Refactor to fix GH 5 - horrid named connections bug.

    If you used multiple connections as allowed for by calling e.g. database('foo')
    where "foo" is a key under plugins -> Database -> connecctios in  the config,
    the first time you used it it would work perfectly, but subsequent calls would
    fail.
    
    Thanks crayon for reporting this!
    
    This commit appears to work but needs further testing.
    bigpresh committed Feb 10, 2011
Commits on Jan 14, 2011
  1. Releasing version 1.00!

    bigpresh committed Jan 14, 2011
Commits on Jan 10, 2011
  1. Docs and tests for Alan's runtime config patch.

    Releasing as 0.91_01, assuming all is OK, will become 1.0 soon;
    bigpresh committed Jan 10, 2011
Commits on Dec 30, 2010
  1. fixed loop: loop over keys of hash

    Alan Haggai Alavi committed Dec 30, 2010
  2. forgot to declare variable $handle

    Alan Haggai Alavi committed Dec 30, 2010
Commits on Dec 24, 2010
  1. It's a subclass of DBI::db, not DBI::st.

    Typo in documentation only.
    bigpresh committed Dec 24, 2010
Commits on Dec 21, 2010
Commits on Dec 10, 2010
  1. Preparing to release 0.90.

    bigpresh committed Dec 10, 2010
Commits on Dec 8, 2010
  1. Dirty bodge to work around problems on Windows systems.

    On some Windows systems, tests were failing due to the lack of views/public/lib
    dirs within t/lib.
    
    Credit to Sawyer for working out that this is due to Cwd on *nix systems using
    an XS version, but Windows machines using a pure-Perl version which behaves
    differently, croaking if a non-existent path is provided.
    
    As Git can't track empty dirs, I've added a .placeholder file in each dir so
    that I can actually check them in (bodgy goodness).
    bigpresh committed Dec 8, 2010
Commits on Dec 7, 2010
  1. Don't try to link to docs for DBI::db.

    Bumped version number for new developer release, to check that tests for new
    extended features pass on smokers.
    bigpresh committed Dec 7, 2010