BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] SQLAlchemy Has Annoyances
- Subject: [Discuss] SQLAlchemy Has Annoyances
- From: kentborg at borg.org (Kent Borg)
- Date: Thu, 05 Feb 2015 14:47:10 -0500
- In-reply-to: <li6egq49oyj.fsf@panix5.panix.com>
- References: <54D2B2FA.4000000@borg.org> <54D2C0AC.7060101@gmail.com> <li6r3u49ug8.fsf@panix5.panix.com> <54D3AF77.2010406@gmail.com> <li6egq49oyj.fsf@panix5.panix.com>
On 02/05/2015 01:45 PM, Mike Small wrote: > So in his case could he use only one class and map it to many tables? > i.e. when finished with one temporary table and moving on to a second > one, I tried that, and SQL Alchemy complains. > could he sweep out all the old class members (member variables or > methods -- I don't know how the mapping to columns is done here) and > add new ones corresponding to the new set of columns? I don't dare do surgery on the class unless I also do matching surgery on the private data structures they are maintaining to map between a class and SQL. The don't watch the class dynamically, that is why I have to make a mapper call. I also considered lifting from their code that frees all the mappings and just free the one I want, but that seemed dangerous and getting is too deep. -kb
- References:
- [Discuss] SQLAlchemy Has Annoyances
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SQLAlchemy Has Annoyances
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] SQLAlchemy Has Annoyances
- From: smallm at panix.com (Mike Small)
- [Discuss] SQLAlchemy Has Annoyances
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] SQLAlchemy Has Annoyances
- From: smallm at panix.com (Mike Small)
- [Discuss] SQLAlchemy Has Annoyances
- Prev by Date: [Discuss] SQLAlchemy Has Annoyances
- Next by Date: [Discuss] SQLAlchemy Has Annoyances
- Previous by thread: [Discuss] SQLAlchemy Has Annoyances
- Next by thread: [Discuss] SQLAlchemy Has Annoyances
- Index(es):