@@ -577,6 +577,22 @@ public function upsert(
577577 */
578578 abstract protected function getCacheKey (int $ queryMode , string $ rawSql ): array ;
579579
580+ /**
581+ * Executes a prepared statement.
582+ *
583+ * @param string|null $rawSql the rawSql if it has been created.
584+ *
585+ * @throws Exception|Throwable
586+ */
587+ abstract protected function internalExecute (string |null $ rawSql ): void ;
588+
589+ abstract protected function internalGetQueryResult (int $ queryMode ): mixed ;
590+
591+ /**
592+ * Refreshes table schema, which was marked by {@see requireTableSchemaRefresh()}.
593+ */
594+ abstract protected function refreshTableSchema (): void ;
595+
580596 /**
581597 * @param int $queryMode - one from modes QUERY_MODE_*
582598 *
@@ -651,17 +667,6 @@ protected function queryWithoutCache(string $rawSql, int $queryMode): mixed
651667 return $ result ;
652668 }
653669
654- /**
655- * Executes a prepared statement.
656- *
657- * @param string|null $rawSql the rawSql if it has been created.
658- *
659- * @throws Exception|Throwable
660- */
661- abstract protected function internalExecute (string |null $ rawSql ): void ;
662-
663- abstract protected function internalGetQueryResult (int $ queryMode ): mixed ;
664-
665670 /**
666671 * Logs the current database query if query logging is enabled and returns the profiling token if profiling is
667672 * enabled.
@@ -671,16 +676,6 @@ protected function logQuery(string $rawSql, string $category): void
671676 $ this ->logger ?->log(LogLevel::INFO , $ rawSql , [$ category ]);
672677 }
673678
674- /**
675- * Refreshes table schema, which was marked by {@see requireTableSchemaRefresh()}.
676- */
677- protected function refreshTableSchema (): void
678- {
679- if ($ this ->refreshTableName !== null ) {
680- $ this ->queryBuilder ()->schema ()->refreshTableSchema ($ this ->refreshTableName );
681- }
682- }
683-
684679 /**
685680 * Marks a specified table schema to be refreshed after command execution.
686681 *
0 commit comments