File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -241,3 +241,21 @@ source_file = _build/gettext/how-to/json-props.pot
241
241
source_lang = en
242
242
type = PO
243
243
244
+ [gino_1_0.how-to--bakery]
245
+ file_filter = locale/<lang>/LC_MESSAGES/how-to/bakery.po
246
+ source_file = _build/gettext/how-to/bakery.pot
247
+ source_lang = en
248
+ type = PO
249
+
250
+ [gino_1_0.reference--api--gino_bakery]
251
+ file_filter = locale/<lang>/LC_MESSAGES/reference/api/gino.bakery.po
252
+ source_file = _build/gettext/reference/api/gino.bakery.pot
253
+ source_lang = en
254
+ type = PO
255
+
256
+ [gino_1_0.tutorials--announcement]
257
+ file_filter = locale/<lang>/LC_MESSAGES/tutorials/announcement.po
258
+ source_file = _build/gettext/tutorials/announcement.pot
259
+ source_lang = zh
260
+ type = PO
261
+
Original file line number Diff line number Diff line change 1
1
Bake Queries
2
2
============
3
3
4
+ .. versionadded :: 1.1
5
+
4
6
Baked queries are used to boost execution performance for constantly-used queries.
5
7
Similar to the :doc: `orm/extensions/baked ` in SQLAlchemy, GINO could also cache the
6
8
object’s construction and string-compilation steps. Furthermore, GINO automatically
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ you'll have to declare columns for the query::
104
104
now,
105
105
).gino.load(
106
106
('now:', now)
107
- ).first( )
108
- print(result) # now: 2018-04-08 08:23:02.431847
107
+ ).query )
108
+ print(* result) # now: 2018-04-08 08:23:02.431847
109
109
110
110
Let's get back to previous example. The second item in the tuple is a GINO
111
111
model class. As we've presented previously, it is interpreted into a
You can’t perform that action at this time.
0 commit comments