weekends are for leisure

Quick and Dirty ORM

Tags: #Python3  #Sqlite3  #Programming 

In January 2010 I decided to break from common database convention and design a new style of ORM. It was also an excuse to dive deeper into Python 3. The result is my Data Type Tables project, which currently only supports sqlite3.

Features:

However:

Here’s how:

The ability to create “sort sets” might be coming soon … so you’d be able to create a sort set of Products by price, and by name, etc. Right now you’d have to write the SQL queries to do those joins yourself. Perhaps there’s a way I can abstract it. That’s what I aim to find out.

Every now and then I find ways to reduce code and make things faster. But at this point it’s pretty stable. I’m actually using the field-level revisions functionality to track changes in my girlfriend’s Etsy store views and favorites. Just for the hell of it.

Happy ORMing.