docs: async def scalar(query, as_tuple=False):
      """Get single value from ``select()`` query, i.e. for aggregation.
  
      :return: result is the same as after sync ``query.scalar()`` call
      """
      cursor = await _execute_query_async(query)
  
      try:
          row = await cursor.fetchone()
      finally:
          await cursor.release()
  
      if row and not as_tuple:
          return row[0]
      else:
          return row