Cdbi cookbook

From ClassDBI

How to, why to, tips and tricks:

  • common problems
  • Class::DBI and Template Toolkit
  • using Class::Date to handle dates with ease
  • using DateTime another way of working with dates
  • complex many to many with a complex many to many example
  • setting system date fields (or equivalent)
  • Oracle specific stuff
    • Working With Oracle Date Fields
    • Setting Session Globals
  • setting default values
  • using transactions (a.k.a. atomic updates)
  • using with mod_perl
  • working with blobs
  • case insensitive searches
  • order by multiple columns
  • see all SQL
  • edit data in a text editor
  • delete by setting deleted column to not null
  • confirm password at registration
  • directly execute SQL
  • using joins
  • load file from STDIN
  • query aggregates
  • deleting related objects
  • conflicting updates
  • self-referencing tables
  • searching for NULL and IS NOT NULL
  • working with triggers
  • using multiple databases
  • re-using legacy DBI handles
  • overriding autogenerated accessors
  • get a database handle from your Class::DBI object
  • transform SQL
  • select distinct
  • parent child relationships
  • overriding retrieve_all for specific ordering
  • storing encrypted passwords
  • versioning with two tables
  • implementing an object factory, or using multiple classes for one table
  • inflating and deflating storable data
  • turning a row id into an accessor, or how to turn tables on their side
[edit]

To-Do

  • retrofitting over an existing schema
Retrieved from "http://wiki.class-dbi.com/wiki/Cdbi_cookbook"
Views
  • Article
  • Discussion
  • Edit
  • History
Personal tools
  • Create an account or log in
Navigation
  • Main Page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
  • Donations
 
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version
MediaWiki
Attribution-ShareAlike 2.5
  • This page was last modified 04:33, 17 July 2008.
  • This page has been accessed 19,980 times.
  • Content is available under Attribution-ShareAlike 2.5.
  • About ClassDBI
  • Disclaimers