MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / bakery

Method bakery

lib/sqlalchemy/ext/baked.py:66–73  ·  view source on GitHub ↗

Construct a new bakery. :return: an instance of :class:`.Bakery`

(cls, size=200, _size_alert=None)

Source from the content-addressed store, hash-verified

64
65 @classmethod
66 def bakery(cls, size=200, _size_alert=None):
67 """Construct a new bakery.
68
69 :return: an instance of :class:`.Bakery`
70
71 """
72
73 return Bakery(cls, util.LRUCache(size, size_alert=_size_alert))
74
75 def _clone(self):
76 b1 = BakedQuery.__new__(BakedQuery)

Callers 15

test_get_baked_queryMethod · 0.80
test_baked_mixMethod · 0.80
setup_testMethod · 0.80
test_initial_keyMethod · 0.80
test_inplace_addMethod · 0.80
test_chained_addMethod · 0.80
test_first_no_resultMethod · 0.80

Calls 1

BakeryClass · 0.85

Tested by 15

test_get_baked_queryMethod · 0.64
test_baked_mixMethod · 0.64
setup_testMethod · 0.64
test_initial_keyMethod · 0.64
test_inplace_addMethod · 0.64
test_chained_addMethod · 0.64
test_first_no_resultMethod · 0.64