in reply to DBIx::Class in a single file

That seems like it should be possible. Probably not much fun to whip up an example without even a starting point though. :) Can you post the code you've tried? Using SQLite as a the DB is the easiest way to make it portable for others to test/hack.

There are ways to have your class files autogenerated too--DBIx::Class::Schema::Loader--or just have the classes in memory. So maybe you should list your requirements before picking the code path to follow.