Documentation TYPO3 par Ameos |
Public Member Functions | |
ADODB_sqlite () | |
ServerInfo () | |
BeginTrans () | |
CommitTrans ($ok=true) | |
RollbackTrans () | |
& | MetaColumns ($tab) |
_init ($parentDriver) | |
_insertid () | |
_affectedrows () | |
ErrorMsg () | |
ErrorNo () | |
SQLDate ($fmt, $col=false) | |
_createFunctions () | |
_connect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_pconnect ($argHostname, $argUsername, $argPassword, $argDatabasename) | |
_query ($sql, $inputarr=false) | |
& | SelectLimit ($sql, $nrows=-1, $offset=-1, $inputarr=false, $secs2cache=0) |
GenID ($seq='adodbseq', $start=1) | |
CreateSequence ($seqname='adodbseq', $start=1) | |
DropSequence ($seqname) | |
_close () | |
& | MetaIndexes ($table, $primary=FALSE, $owner=false) |
Public Attributes | |
$databaseType = "sqlite" | |
$replaceQuote = "''" | |
string that represents FALSE for a database | |
$concat_operator = '||' | |
maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro | |
$_errorNo = 0 | |
$hasLimit = true | |
support mssql/access SELECT TOP 10 * FROM TABLE | |
$hasInsertID = true | |
$hasAffectedRows = true | |
supports autoincrement ID? | |
$metaTablesSQL = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name" | |
supports affected rows for update/delete? | |
$sysDate = "adodb_date('Y-m-d')" | |
cache for 1 hour | |
$sysTimeStamp = "adodb_date('Y-m-d H:i:s')" | |
name of function that returns the current date | |
$fmtTimeStamp = "'Y-m-d H:i:s'" | |
used by DBDate() as the default date format used by the database | |
$_genSeqSQL = "create table %s (id integer)" | |
$_dropSeqSQL = 'drop table %s' |
Definition at line 21 of file adodb-sqlite.inc.php.
|
Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().
Reimplemented from ADOConnection. Definition at line 55 of file adodb-sqlite.inc.php. References ADOConnection::Execute(). |
|
If database does not support transactions, always return true as data always commited
Reimplemented from ADOConnection. Definition at line 63 of file adodb-sqlite.inc.php. References ADOConnection::Execute(), and RollbackTrans(). |
|
Reimplemented from ADOConnection. Definition at line 133 of file adodb-sqlite.inc.php. |
|
Reimplemented from ADOConnection. Definition at line 139 of file adodb-sqlite.inc.php. |
|
Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;
Reimplemented from ADOConnection. Definition at line 213 of file adodb-sqlite.inc.php. References ADOConnection::Execute(), and ADOConnection::GetOne(). |
|
There must be a more elegant way of doing this, the index elements appear in the SQL statement in cols[1] between parentheses e.g CREATE UNIQUE INDEX ware_0 ON warehouse (org,warehouse) Reimplemented from ADOConnection. Definition at line 264 of file adodb-sqlite.inc.php. References ADOConnection::$false, ADOConnection::Execute(), and ADOConnection::SetFetchMode(). |
|
If database does not support transactions, rollbacks always fail, so return false
Reimplemented from ADOConnection. Definition at line 72 of file adodb-sqlite.inc.php. References ADOConnection::Execute(). Referenced by CommitTrans(). |
|
Will select, getting rows from $offset (1-based), for $nrows. This simulates the MySQL "select * from table limit $offset,$nrows" , and the PostgreSQL "select * from table limit $nrows offset $offset". Note that MySQL and PostgreSQL parameter ordering is the opposite of the other. eg. SelectLimit('select * from table',3); will return rows 1 to 3 (1-based) SelectLimit('select * from table',3,2); will return rows 3 to 5 (1-based) Uses SELECT TOP for Microsoft databases (when $this->hasTop is set) BUG: Currently SelectLimit fails with $sql with LIMIT or TOP clause already set
Reimplemented from ADOConnection. Definition at line 193 of file adodb-sqlite.inc.php. References ADOConnection::CacheExecute(), and ADOConnection::Execute(). |
|
Get server version info...
Reimplemented from ADOConnection. Definition at line 47 of file adodb-sqlite.inc.php. |