you probably dont want to bother with "secondary" since it doesnt get
you anything here and you should likely pare down the size of your
join condition to something more minimal.you might want to also
make life easier and make the relation to a non_primary mapper for
Apples which maps
(wow, way to go tab key! Sorry, folks)
I'm having a bit of trouble and I think it may be a deficiency in my
understanding of SqlAlchemy.
Let's say I have:
Table(Apples)
Table(Crates)
apples_by_crate = \
select([ crate_table.c.id.label("crate_id"),
apple_table.c.id.label("a
I'm having a bit of trouble and I think it may be a deficiency in my
understanding of SqlAlchemy.
Let's say I have:
Table(Apples)
Table(Crates)
mapper(Crates,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"sqlalc
On Dec 27, 2008, at 10:29 AM, Jim Jones wrote:
>
> Andreas Jung wrote:
>> On 27.12.2008 11:06 Uhr, Jim Jones wrote:
>>> Hi List,
>>>
>>> I have this simple model (in declarative style):
>>>
>>> class Item( Base ):
>>> __tablename__ = 'items'
>>> desc = Column( 'desc', UnicodeText(), nul
if instance in session:
do something
else:
do something else
alternatively, you can explicitly say
elif instance in session.new:
On Dec 27, 2008, at 4:35 AM, Chen Houwu wrote:
>
> I want to do as following:
>
> if instance is Transient:
> do something
> else instance is Pen
Andreas Jung wrote:
> On 27.12.2008 11:06 Uhr, Jim Jones wrote:
> > Hi List,
> >
> > I have this simple model (in declarative style):
> >
> > class Item( Base ):
> > __tablename__ = 'items'
> > desc = Column( 'desc', UnicodeText(), nullable=False )
> > email = Column( 'email', Unic
On 27.12.2008 11:06 Uhr, Jim Jones wrote:
> Hi List,
>
> I have this simple model (in declarative style):
>
> class Item( Base ):
> __tablename__ = 'items'
> desc = Column( 'desc', UnicodeText(), nullable=False )
> email = Column( 'email', UnicodeText(), nullable=False )
>
> How can
Hi List,
I have this simple model (in declarative style):
class Item( Base ):
__tablename__ = 'items'
desc = Column( 'desc', UnicodeText(), nullable=False )
email = Column( 'email', UnicodeText(), nullable=False )
How can I trigger an event when the value of 'desc' has changed
and
On Dec 27, 2008, at 1:39 PM, Andreas Jung wrote:
> On 27.12.2008 3:06 Uhr, Eric Abrahamsen wrote:
>> Sorry for the very beginner question, but I haven't been able to find
>> a good discussion of this issue online (possibly because it's too
>> basic).
>>
>> I'm using sqlalchemy as part of a basic
I want to do as following:
if instance is Transient:
do something
else instance is Pending:
do something else
How can I accomplish it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To pos
"schema" has to match as well. your groups_table has no "schema=".
so it would match to "tg_group.group_id".
also please use all lower case letters unless you require exact
casing.
http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/schema.html#sqlalchemy.schema.Column
--~--~---
11 matches
Mail list logo