SQLiteDatabase
class SQLiteDatabase (View source)
Methods
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Execute a query against a given database and returns an array
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) Executes a query and returns either an array for one single column or the value of the first row
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Execute a query that does not prefetch and buffer all data
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the rowid of the most recently inserted row
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the number of rows that were changed by the most recent SQL statement
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Register an aggregating UDF for use in SQL statements
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Registers a "regular" User Defined Function for use in SQL statements
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Set busy timeout duration, or disable busy handlers
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the error code of the last error for a database
(PHP 5 < 5.4.0) Return an array of column types from a particular table
Details
final
__construct(string $filename, int $mode = 0666, string $error_message)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
resource|false
query(string $query, int $result_type, string $error_message)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
bool
queryExec(string $query, string $error_message)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)
array|false
arrayQuery(string $query, int $result_type, bool $decode_binary)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Execute a query against a given database and returns an array
array
singleQuery(string $query, bool $first_row_only, bool $decode_binary)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.1) Executes a query and returns either an array for one single column or the value of the first row
resource
unbufferedQuery(string $query, int $result_type = SQLITE_BOTH, string $error_message = null)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Execute a query that does not prefetch and buffer all data
int
lastInsertRowid()
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the rowid of the most recently inserted row
int
changes()
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the number of rows that were changed by the most recent SQL statement
createAggregate(string $function_name, callable $step_func, callable $finalize_func, int $num_args = -1)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Register an aggregating UDF for use in SQL statements
createFunction(string $function_name, callable $callback, int $num_args = -1)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Registers a "regular" User Defined Function for use in SQL statements
int
busyTimeout(int $milliseconds)
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Set busy timeout duration, or disable busy handlers
int
lastError()
(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) Returns the error code of the last error for a database
array
fetchColumnTypes(string $table_name, int $result_type = SQLITE_ASSOC)
(PHP 5 < 5.4.0) Return an array of column types from a particular table