PHP Velho Oeste 2024

SQLite3Stmt sınıfı

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

Giriş

SQLite 3 eklentisi için hazır deyimleri içeren sınıf.

Sınıf Sözdizimi

class SQLite3Stmt {
/* Yöntemler */
private __construct(SQLite3 $sqlite3, string $query)
public bindParam(string $sql_değişkeni, string|int &$php_değişkeni, int $tür = SQLITE3_TEXT): bool
public bindValue(string|int $değişken, mixed $değer, int $tür = SQLITE3_TEXT): bool
public clear(): bool
public close(): bool
public getSQL(bool $expand = false): string|false
public paramCount(): int
public readOnly(): bool
public reset(): bool
}

İçindekiler

add a note add a note

User Contributed Notes 1 note

up
3
bohwaz
10 years ago
There is an undocumented method "readOnly" in this class, as reported on https://bugs.php.net/bug.php?id=65216

This method can be used like this :

<?php

$db
= new SQLite3(':memory:');
$db->exec('CREATE TABLE test (column);');

$stmt  = $db->prepare('SELECT column FROM test;');
var_dump($stmt->readOnly()); // -> true

$stmt  = $db->prepare('INSERT INTO test (42);');
var_dump($stmt->readOnly()); // -> false

?>
To Top