SQLite3Stmt 클래스
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
소개
SQLite 3 확장에 대해 준비된 명령문을 처리하는 클래스입니다.
클래스 개요
class SQLite3Stmt {
/* Methods */
private __construct(SQLite3 $sqlite3, string $query)
public bindParam(string|int $param, mixed &$var, int $type = SQLITE3_TEXT): bool
public bindValue(string|int $param, mixed $value, int $type = SQLITE3_TEXT): bool
public clear(): bool
public close(): bool
public execute(): SQLite3Result|false
public getSQL(bool $expand = false): string|false
public paramCount(): int
public readOnly(): bool
public reset(): bool
}
목차
- SQLite3Stmt::bindParam — 매개변수를 명령문 변수에 바인딩
- SQLite3Stmt::bindValue — 매개변수 값을 명령문 변수에 바인딩
- SQLite3Stmt::clear — 현재 바인딩된 모든 매개변수를 지웁니다.
- SQLite3Stmt::close — 준비된 명령문을 닫습니다.
- SQLite3Stmt::__construct — SQLite3Stmt 객체를 생성합니다.
- SQLite3Stmt::execute — 준비된 명령문을 실행하고 결과 집합 개체를 반환합니다.
- SQLite3Stmt::getSQL — 문의 SQL 가져오기
- SQLite3Stmt::paramCount — 준비된 명령문 내의 매개변수 수를 반환합니다.
- SQLite3Stmt::readOnly — 명령문이 확실히 읽기 전용인지 여부를 반환합니다.
- SQLite3Stmt::reset — 준비된 명령문을 재설정합니다.