Thanks for answer.
I dynamicly create classes, their columns, their relationship.
Add new works with new_instances, who will load after defintion, and
already loaded classes who doesn't contain foreignkeys(for relationships).
session.expire(attribute), does not work, because contained foreign key
On Wed, Apr 11, 2018 at 6:15 AM, Julien Cigar wrote:
> On Tue, Apr 10, 2018 at 11:53:09AM -0400, Mike Bayer wrote:
>> On Tue, Apr 10, 2018 at 9:28 AM, Julien Cigar wrote:
>> > Hello,
>> >
>> > I wondered if it is possible to use a class mapped
On Tue, Apr 10, 2018 at 11:53:09AM -0400, Mike Bayer wrote:
> On Tue, Apr 10, 2018 at 9:28 AM, Julien Cigar wrote:
> > Hello,
> >
> > I wondered if it is possible to use a class mapped against multiple
> > tables as a relationship() in another class?
>
> it is, there's
On Wed, Apr 11, 2018 at 7:40 AM, Tolstov Sergey wrote:
> I use dynamic constructor for class.
> It works fine for instance who have not foreign keys. But when FK on another
> instance it cannot load them
>
> Example:
> class left (Base):
> id = sqlalchemy.Column(UUID,
I use dynamic constructor for class.
It works fine for instance who have not foreign keys. But when FK on
another instance it cannot load them
Example:
class left (Base):
id = sqlalchemy.Column(UUID, primary_key = True)
def __getattr__(self, attribute):
if attribute == 'rights':