mirror of
https://codeberg.org/vlw/php-sqlite.git
synced 2025-09-14 04:43:42 +02:00
fix: root namespace for sqlite3 classes (#1)
This commit is contained in:
parent
acad98d5c0
commit
3b24c605c9
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue