fix: root namespace for sqlite3 classes (#1)

This commit is contained in:
Victor Westerlund 2023-04-24 17:23:27 +02:00 committed by GitHub
parent acad98d5c0
commit 3b24c605c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,7 @@
namespace libsqlitedriver; namespace libsqlitedriver;
class SQLite extends SQLite3 { class SQLite extends \SQLite3 {
function __construct(string $db = ":memory:", string $init = null) { function __construct(string $db = ":memory:", string $init = null) {
$this->db_path = $db; $this->db_path = $db;
@ -33,7 +33,7 @@
} }
// Execute a prepared statement and SQLite3Result object // Execute a prepared statement and SQLite3Result object
private function run_query(string $query, mixed $values = []): SQLite3Result|bool { private function run_query(string $query, mixed $values = []): \SQLite3Result|bool {
$statement = $this->prepare($query); $statement = $this->prepare($query);
// Format optional placeholder "?" with values // Format optional placeholder "?" with values