Hello
I noticed that in filter method I can use either
and_(condition1,condition2)
or
condition1 and condition2
But I searched and did not find any mention about second way anywhere.
I want to know if both options are equal or there some cat
On Jan 5, 2012, at 3:03 PM, Mariano Mara wrote:
> Hi there! I have a master-detail entity. Since I do some post-processing work
> on the details before inserting the entity in the db, I added an
> 'after_insert' event where I do the extra stuff.
> One of the things I need is to make sure certain
Hi there! I have a master-detail entity. Since I do some post-processing work
on the details before inserting the entity in the db, I added an
'after_insert' event where I do the extra stuff.
One of the things I need is to make sure certain "details" have been
selected by the user and in case he di
On Jan 5, 2012, at 9:46 AM, kek06 wrote:
> If you are using backref, is there a difference between choosing a
> "One to Many" or "Many to One" relationship ?
one-to-many and many-to-one are always complementary. think of it as george
washington and an eagle on both sides of a quarter. the
On Jan 5, 2012, at 9:52 AM, Thijs Engels wrote:
> When going through the (excellent) documentation on relationsship I came
> across this example:
>
>
> from sqlalchemy import Integer, ForeignKey, String, Column
> from sqlalchemy.ext.declarative import declarative_base
> from sqlalchemy.orm impo
On Jan 5, 2012, at 9:57 AM, Michael Hipp wrote:
> Working from the many-many example in the tutorial [1], it has an association
> table like this:
>
> post_keywords = Table('post_keywords', Base.metadata,
>Column('post_id', Integer, ForeignKey('posts.id')),
>Column('keyword_id', Integer
Working from the many-many example in the tutorial [1], it has an association
table like this:
post_keywords = Table('post_keywords', Base.metadata,
Column('post_id', Integer, ForeignKey('posts.id')),
Column('keyword_id', Integer, ForeignKey('keywords.id'))
)
Normally to just empty ever
When going through the (excellent) documentation on relationsship I came
across this example:
from sqlalchemy import Integer, ForeignKey, String, Column
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
Base = declarative_base()
class User(Base):
If you are using backref, is there a difference between choosing a
"One to Many" or "Many to One" relationship ?
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from