Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 54c27a2

Browse files
committed
Improve driver docs and property naming
1 parent cb4d6a3 commit 54c27a2

File tree

4 files changed

+86
-82
lines changed

4 files changed

+86
-82
lines changed

tests/WP_SQLite_Driver_Translation_Tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ private function assertQuery( $expected, string $query ): void {
12611261
);
12621262
}
12631263

1264-
$executed_queries = array_column( $this->driver->get_sqlite_queries(), 'sql' );
1264+
$executed_queries = array_column( $this->driver->get_last_sqlite_queries(), 'sql' );
12651265

12661266
// Remove BEGIN and COMMIT/ROLLBACK queries.
12671267
if ( count( $executed_queries ) > 2 ) {
@@ -1305,7 +1305,7 @@ function ( $query ) {
13051305
private function assertExecutedInformationSchemaQueries( array $expected ): void {
13061306
// Collect and normalize "information_schema" queries.
13071307
$queries = array();
1308-
foreach ( $this->driver->get_sqlite_queries() as $query ) {
1308+
foreach ( $this->driver->get_last_sqlite_queries() as $query ) {
13091309
if ( ! str_contains( $query['sql'], '_mysql_information_schema_' ) ) {
13101310
continue;
13111311
}

tests/tools/dump-sqlite-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
$driver->query( $query );
2525

26-
$executed_queries = $driver->get_sqlite_queries();
26+
$executed_queries = $driver->get_last_sqlite_queries();
2727
if ( count( $executed_queries ) > 2 ) {
2828
// Remove BEGIN and COMMIT/ROLLBACK queries.
2929
$executed_queries = array_values( array_slice( $executed_queries, 1, -1, true ) );

0 commit comments

Comments
 (0)