diff options
author | INADA Naoki <songofacandy@gmail.com> | 2015-06-02 22:05:18 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2015-06-02 22:05:18 +0900 |
commit | 36d2b40cf55bc0f4e850e9ec4e905f0051f573f2 (patch) | |
tree | ed83e6e738723a399a40a3511b6225fd5fabfa0f /lib/sqlalchemy/engine/base.py | |
parent | 0766c80b9c02fdbad3203835ab850ad690f4c03b (diff) | |
download | sqlalchemy-36d2b40cf55bc0f4e850e9ec4e905f0051f573f2.tar.gz |
baked: Support initial args for cache key
When making baked query in classmethod of declarative base,
cls should be added in cache key.
@as_declarative
class Base(object):
@classmethod
def baked_query(cls):
return bakery(lambda: session.query(cls), (cls,))
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
0 files changed, 0 insertions, 0 deletions