From 9aad29020964924a3a706c9e6f611ae9b761c7cf Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 25 Feb 2021 11:52:41 -0800 Subject: [PATCH] docs: fetch() -> query() --- docs/api/asyncio_con.rst | 4 ++-- docs/api/blocking_con.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/asyncio_con.rst b/docs/api/asyncio_con.rst index 1a29bab9..a0dfbe06 100644 --- a/docs/api/asyncio_con.rst +++ b/docs/api/asyncio_con.rst @@ -635,7 +635,7 @@ Python code. Here is an example: async for tx in pool.retrying_transaction(): async with tx: - user = await tx.fetch_one( + user = await tx.query_one( "SELECT User { email } FILTER .login = $login", login=login, ) @@ -643,7 +643,7 @@ Python code. Here is an example: 'https://service.local/email_info', params=dict(email=user.email), ) - user = await tx.fetch_one(''' + user = await tx.query_one(''' UPDATE User FILTER .login = $login SET { email_info := $data} ''', diff --git a/docs/api/blocking_con.rst b/docs/api/blocking_con.rst index 5405fd3b..309dcee1 100644 --- a/docs/api/blocking_con.rst +++ b/docs/api/blocking_con.rst @@ -355,7 +355,7 @@ Python code. Here is an example: for tx in pool.retrying_transaction(): with tx: - user = tx.fetch_one( + user = tx.query_one( "SELECT User { email } FILTER .login = $login", login=login, ) @@ -363,7 +363,7 @@ Python code. Here is an example: 'https://service.local/email_info', params=dict(email=user.email), ) - user = tx.fetch_one(''' + user = tx.query_one(''' UPDATE User FILTER .login = $login SET { email_info := $data} ''',