123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <?php
- class SQLite3
- {
-
- public function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryptionKey = "") {}
-
- public function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryptionKey = ""): void {}
-
- public function close() {}
-
- public static function version(): array {}
-
- public function lastInsertRowID(): int {}
-
- public function lastErrorCode(): int {}
-
- public function lastExtendedErrorCode(): int {}
-
- public function lastErrorMsg(): string {}
-
- public function changes(): int {}
-
- public function busyTimeout(int $milliseconds): bool {}
-
- public function loadExtension(string $name): bool {}
-
- public function backup(SQLite3 $destination, string $sourceDatabase = "main", string $destinationDatabase = "main"): bool {}
-
- public static function escapeString(string $string): string {}
-
- public function prepare(string $query): SQLite3Stmt|false {}
-
- public function exec(string $query): bool {}
-
- public function query(string $query): SQLite3Result|false {}
-
- public function querySingle(string $query, bool $entireRow = false): mixed {}
-
- public function createFunction(string $name, callable $callback, int $argCount = -1, int $flags = 0): bool {}
-
- public function createAggregate(string $name, callable $stepCallback, callable $finalCallback, int $argCount = -1): bool {}
-
- public function createCollation(string $name, callable $callback): bool {}
-
- public function openBlob(string $table, string $column, int $rowid, string $database = "main", int $flags = SQLITE3_OPEN_READONLY) {}
-
- public function enableExceptions(bool $enable = false): bool {}
-
- public function enableExtendedResultCodes(bool $enable = true): bool {}
-
- public function setAuthorizer(?callable $callback): bool {}
- }
- class SQLite3Stmt
- {
- private function __construct(SQLite3 $sqlite3, string $query) {}
-
- public function bindParam(string|int $param, mixed &$var, int $type = SQLITE3_TEXT): bool {}
-
- public function bindValue(string|int $param, mixed $value, int $type = SQLITE3_TEXT): bool {}
-
- public function clear(): bool {}
-
- public function close(): bool {}
-
- public function execute(): SQLite3Result|false {}
-
- public function getSQL(bool $expand = false): string|false {}
-
- public function paramCount(): int {}
-
- public function readOnly(): bool {}
-
- public function reset(): bool {}
- }
- class SQLite3Result
- {
- private function __construct() {}
-
- public function numColumns(): int {}
-
- public function columnName(int $column): string|false {}
-
- public function columnType(int $column): int|false {}
-
- public function fetchArray(int $mode = SQLITE3_BOTH): array|false {}
-
- public function reset(): bool {}
-
- public function finalize() {}
- }
|