-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15 Feb 2010, at 15:02, Ahti wrote:
How can I create an Elixir object so that it would not be autoflushed
into the database?
I need this object temporarily only and it is not meant to be
persistent. But I do not want to switch autoflush off globally.
Could somebody help me please?
sqla Query's autoflush sounds like it might fit the bill ...
autoflush(setting)
Return a Query with a specific ‘autoflush’ setting.
Note that a Session with autoflush=False will not autoflush, even if
this flag is set to True at the Query level. Therefore this flag is
usually used only to disable autoflush for a specific Query.
http://www.sqlalchemy.org/docs/reference/orm/query.html
Cheers,
Graham
http://www.linkedin.com/in/ghiggins
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAkt7OmsACgkQOsmLt1NhivxX1QCfUYGYqAdas0F8EL0YX3TcKrp6
DjEAoOL47mBm16+cJ9wkiXU75zO/JfXLiQCVAgUBS3s6a1nrWVZ7aXD1AQJ7kwQA
3LdvbcJsbPvwZ0fhrvr2D+/+M8fZw8uF/tKoMuxg4YeCFQadcdcm3aM4yi7kicRB
yhgotGv8Z0BDpWd5ieBZzHtVXv/v7Sz5ce7ZtpIyaxHlGEn9ohoOeMbdOJ3Ji5+L
S7wbI/EZeyykxPLJrfAP52IGBLmMV47pFoq+/mI2WOg=
=Ro3m
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en.