Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #20 (closed defect: wontfix)

Opened 14 years ago

Last modified 12 years ago

Lazy instantiation of SQLObjects

Reported by: kevin Owned by: anonymous
Priority: normal Milestone:
Component: SQLObject Version:
Severity: normal Keywords:


Sometimes, it is good to collect up information or be able to otherwise use your model objects before you're ready to store them in the database. Currently, this is not possible with SQLObject.

If objects could be set up for lazy insertion, that would make it possible to instantiate the object when you need it, and insert it when you're really ready to save.

Change History

comment:1 Changed 14 years ago by kevin

  • Status changed from new to closed
  • Resolution set to wontfix

There's been more discussion of this.

Doing lazy initialization is complex because of all of the potential relationships between objects. I realize that my own desire for this is largely testing and not real-world use cases. Most people seem to be of the opinion that once data needs to be held in objects, it may as well go into the database.

Until a real-world use case comes up (where using transactions or stuffing the data into dictionaries doesn't cut it), I'll close this ticket.

Note: See TracTickets for help on using tickets.