def init_thread():
if sa.default_metadata.is_bound():
pass # ok, thread is already init'
else:
sa.global_connect()
# assert sa.default_metadata.is_bound() == True
Hope that helps.
Cheers
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http
to be aware of
this and work with _score.
Hope that helps cheers
Seb
--
Sébastien LELONG
http://www.sirloon.net
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post
have
reference to A without saying B relates to A)
Hope that helps
Cheers,
Seb
--
Sébastien LELONG
http://www.sirloon.net
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy
was for now, only one datasource [probably due to
global_connect], we'll see next release). So maybe global_connect will not
even be used anymore by TG...
Cheers
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http://www.sirloon.net
--~--~-~--~~~---~--~~
You
features in this DynamicMetaData...
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http://www.sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send email
. Search for MySQL
has gone away, you'll have different threads talking about that.
Hope it helps.
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
http://www.sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed
to get working is used to specify eg. where
clauses, not to specify which columns to get.
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
On Tuesday 20 February 2007 16:10, vinjvinj wrote:
I'm getting the following error when I build the select clause.
select_columns = [table.c.col1
exceptions encapulsation into SA's exception
has been improved since 0.2.8: some weren't caught resulting in a raise of
the original, underlying database exceptions.
Hope it helps,
Cheers
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You
not the
expected behavior.
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
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
want, since you can
invoke the edit command on several python object. Give a try with:
In [9]: edit mytable.__class__.columns
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed
model...
See attachment for the pickletype col.
Hope it helps.
Cheers,
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post
(identity_map). Since the user was already loaded before, SA doesn't
re-perform sql access to the db. You can see it by activating engine.echo =
True, and selecting users by id (eg. session.query(User).get(1))
Hope it helps.
Cheers,
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
() is the (almost) concatenation of table +
mapper properties since:
set(sorted(cl.c.keys() + cl.mapper.properties.keys())) ==
set(sorted(cl.mapper.props.keys()))
= True
Hope it helps.
Cheers,
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
as in your
example. Maybe that's what you want to avoid...
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send
= svn:keywords=Id Revision
You can also:
svn propset svn:keywords Revision the_file_you_want_to_tag
avoiding the autoprop for all files.
Cheers,
Seb
--
Sébastien LELONG
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed
table_with_key.py, line 25, in ?
print r.label: %s % r.label # won' work
File build/bdist.linux-i686/egg/sqlalchemy/engine/base.py, line 730, in
__getattr__
AttributeError: label
Thanks Cheers
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
import SelectResults
SelectResults(your_session.query(YourMappedClass)).count()
Cheers,
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post
,
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
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 this group
results in an evil maintainance...
Cheers,
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
sqlalchemy group.
To post to this group, send email to sqlalchemy
caching, it may need to
clear it...
thanks much, this is the kind of user involvement i like.
Well, you're very welcome ! Glad to help !
Cheers,
Seb
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
P.S:
im beginning
to suspect that yield introduces overhead vs. a straight list
PROTECTED] on dev
blablabla
Well, that's a lot of obscure observations... without a clean solution ! But
maybe someone will have some ideas...
Cheers,
--
Sébastien LELONG
sebastien.lelong[at]sirloon.net
--~--~-~--~~~---~--~~
You received
21 matches
Mail list logo