2024.8.23
|
Go to the source code of this file.
Functions | |
__alter_table ($table, $alterdefs) | |
raw_db_close_database () | |
raw_db_create_field ($tablename, $field, $type) | |
raw_db_delete_field ($tablename, $field) | |
raw_db_edit_field ($tablename, $field, $type) | |
raw_db_escape_string ($str) | |
raw_db_fetch_array ($result, $type=SQLITE_BOTH) | |
raw_db_free_result ($result) | |
raw_db_list_database_tables () | |
raw_db_list_table_fields_def ($tablename, $type=false) | |
if(DB_WRAPVERSION !=DB_SQLITE_WRAP) | raw_db_open_database ($database, $path="", $u=null, $p=null) |
raw_db_query ($query) | |
raw_db_rename_field ($tablename, $field, $newname, $type) | |
raw_db_rename_table ($tablename, $newname) | |
raw_db_table_exists ($tablename) | |
raw_get_db_version () | |
Variables | |
const | DB_SQLITE_WRAP "db_v2b" |
const | FETCH_ASSOC SQLITE_ASSOC |
const | FETCH_BOTH (PHP_VERSION< "5") if(!extension_loaded('sqlite')) if(! @dl('php_sqlite.dll')) SQLITE_BOTH |
const | FETCH_NUM SQLITE_NUM |
__alter_table | ( | $table, | |
$alterdefs ) |
__alter_table() This function implements a subset of commands from ALTER TABLE Adapted from http://code.jenseng.com/db/
$table | |
$alterdefs | string for ALTER TABLE |
//
if ($severpos = strpos($createtesttableSQL, ' ' . $defparts[1] . ' ')) { could end with , or ) if no type!!!!
//
Definition at line 307 of file db_sqlite.inc.php.
References $result.
Referenced by raw_db_create_field(), raw_db_delete_field(), raw_db_edit_field(), raw_db_rename_field(), and raw_db_rename_table().
raw_db_close_database | ( | ) |
Definition at line 100 of file db_sqlite.inc.php.
raw_db_create_field | ( | $tablename, | |
$field, | |||
$type ) |
$tablename | |
$field | |
$type |
Definition at line 178 of file db_sqlite.inc.php.
References __alter_table().
raw_db_delete_field | ( | $tablename, | |
$field ) |
$tablename | |
$field |
Definition at line 196 of file db_sqlite.inc.php.
References __alter_table().
raw_db_edit_field | ( | $tablename, | |
$field, | |||
$type ) |
$tablename | |
$field | |
$type |
Definition at line 235 of file db_sqlite.inc.php.
References __alter_table().
raw_db_escape_string | ( | $str | ) |
$str |
Definition at line 293 of file db_sqlite.inc.php.
raw_db_fetch_array | ( | $result, | |
$type = SQLITE_BOTH ) |
raw_db_fetch_array() get the value of SQL-query, row by row
$result | ||
unknown | $type |
Definition at line 270 of file db_sqlite.inc.php.
References $result.
raw_db_free_result | ( | $result | ) |
$result |
Definition at line 281 of file db_sqlite.inc.php.
raw_db_list_database_tables | ( | ) |
raw_db_list_database_tables() Returns an array with the list of tables of the current database.
Definition at line 80 of file db_sqlite.inc.php.
raw_db_list_table_fields_def | ( | $tablename, | |
$type = false ) |
raw_db_list_table_fields_def() lists fieldnames or fieldattributes according type
$tablename | ||
boolean | $type |
Definition at line 149 of file db_sqlite.inc.php.
References $result, db_fetch_array(), and db_query().
if(DB_WRAPVERSION !=DB_SQLITE_WRAP) raw_db_open_database | ( | $database, | |
$path = "", | |||
$u = null, | |||
$p = null ) |
raw_db_open_database() Opens and connects a database. Create the database if it does not exist.
$database | ||
string | $server | |
string | $username | |
string | $password |
Definition at line 54 of file db_sqlite.inc.php.
raw_db_query | ( | $query | ) |
raw_db_query() queries the database with SQL
string | $query |
Definition at line 255 of file db_sqlite.inc.php.
raw_db_rename_field | ( | $tablename, | |
$field, | |||
$newname, | |||
$type ) |
$tablename | |
$field | |
$newname | |
$type |
Definition at line 216 of file db_sqlite.inc.php.
References __alter_table().
raw_db_rename_table | ( | $tablename, | |
$newname ) |
$tablename | |
$newname |
Definition at line 131 of file db_sqlite.inc.php.
References __alter_table().
raw_db_table_exists | ( | $tablename | ) |
$tablename |
Definition at line 114 of file db_sqlite.inc.php.
raw_get_db_version | ( | ) |
raw_get_db_version() Returns the version of the database library.
Definition at line 35 of file db_sqlite.inc.php.
const DB_SQLITE_WRAP "db_v2b" |
Definition at line 26 of file db_sqlite.inc.php.
const FETCH_ASSOC SQLITE_ASSOC |
Definition at line 24 of file db_sqlite.inc.php.
const FETCH_BOTH(PHP_VERSION< "5") if(!extension_loaded( 'sqlite')) if(! @dl( 'php_sqlite.dll')) | ( | ) | SQLITE_BOTH |
WINBINDER - The native Windows binding for PHP for PHP
Copyright � Hypervisual - see LICENSE.TXT for details Authors: Rubem Pechansky and Hans Rebel
Database wrapper functions for WinBinder (SQLite-specific) version 2b
Definition at line 22 of file db_sqlite.inc.php.
const FETCH_NUM SQLITE_NUM |
Definition at line 23 of file db_sqlite.inc.php.