Method
_prepare
(
self,
query,
*,
name: typing.Union[str, bool, None] = None,
timeout=None,
use_cache: bool=False,
record_class=None
)
Source from the content-addressed store, hash-verified
| 643 | ) |
| 644 | |
| 645 | async def _prepare( |
| 646 | self, |
| 647 | query, |
| 648 | *, |
| 649 | name: typing.Union[str, bool, None] = None, |
| 650 | timeout=None, |
| 651 | use_cache: bool=False, |
| 652 | record_class=None |
| 653 | ): |
| 654 | self._check_open() |
| 655 | if name is None: |
| 656 | name = self._stmt_cache_enabled |
| 657 | stmt = await self._get_statement( |
| 658 | query, |
| 659 | timeout, |
| 660 | named=name, |
| 661 | use_cache=use_cache, |
| 662 | record_class=record_class, |
| 663 | ) |
| 664 | return prepared_stmt.PreparedStatement(self, query, stmt) |
| 665 | |
| 666 | async def fetch( |
| 667 | self, |