| 37 | ) -> type[result.Result]: |
| 38 | # Need to also create a python version of the scalar result |
| 39 | class PyScalarResult(result_internal, result.ScalarResult): |
| 40 | _fetchiter_impl = result.ScalarResult._fetchiter_impl |
| 41 | _fetchone_impl = result.ScalarResult._fetchone_impl |
| 42 | _fetchmany_impl = result.ScalarResult._fetchmany_impl |
| 43 | _fetchall_impl = result.ScalarResult._fetchall_impl |
| 44 | _soft_close = result.ScalarResult._soft_close |
| 45 | |
| 46 | def scalars(self, index=0): |
| 47 | return PyScalarResult(self, index) |