Can anyone point me to example Ruby code that uses an SQL database.

My application stores TV schedules in a Postgres database etc.

I'd like to use a Ruby "style" to access the database - specific
classes for rows from each table or view, etc.  But SQL relational
style and Ruby object style don't really mesh very cleanly.

So basically I'm looking to see the approach that others have taken.

My apps will all be in Ruby so perhaps an SQL database is the wrong
approach.  I'm also open to other suggestions!

Thanks,
Steve Davies