ADOdb Lite Modules
With the release of ADOdb Lite Version 0.13 the addition of module support was added. ADOdb Lite Modules allow you to select what you would like loaded for ADOdb Lite. This will allow you greater control over the resources needed by ADOdb Lite. You nolonger have to load functions you will never use in your code. This makes ADOdb Lite incredably FAST, SMALL and HIGHLY EXPANDABLE.
Some modules come included with the ADOdb Lite package while others can be downloaded seperately and then easily added to ADOdb Lite. Below is a list of the currently offered modules for ADOdb Lite and the new features they offer.
If you would like to create new modules for use with ADOdb Lite be sure to check the Module Creation page for more information. I have created a Modules file area on Sourceforge for all user created modules. If you would like your module to be availible for download send me a copy and I will add it to the Module File Release Area. Make sure you have included a readme.txt or something similar with information about the code, yourself and any installation instructions.
The following modules are supported:
Module Designator |
Module Function |
pear |
Adds generic Pear Database Functions |
transaction |
Adds transaction support for databases that support it |
extend |
Adds little used but important ADOdb functions |
date |
Adds all ADOdb Database Date Functions |
Pear Module Commands (module included with ADOdb Lite)
Pear Commands have been moved to their own module. When creating a new ADO Connection you will need to add the "pear" flag if you wish to use any of these commands. The following is a list of Pear Commands. The Pear Module will add approximately 17k to the libraries memory overhead. The following Pear commands are not supported: $db->Prepare(), $db->nextID and $db->GetAssoc()
Pear Database Commands |
$db->Disconnect()
$db->ErrorNative()
$db->GetCol($sql)
$db->GetOne($sql)
$db->GetRow($sql)
$db->LimitQuery( $sql,[offset], [nrows], [$inputarray] )
$db->Query($sql, [$inputarray])
$db->Quote($string)
$db->SetFetchMode($mode) - $mode = 'ADODB_FETCH_DEFAULT' | 'ADODB_FETCH_NUM' | 'ADODB_FETCH_ASSOC' | 'ADODB_FETCH_BOTH'
|
|
Pear Resultset Commands |
$result->FetchInto($array)
$result->FetchRow()
$result->Free()
$result->NumCols()
$result->NumRows()
|
|
Transaction Module Commands (module included with ADOdb Lite)
Transaction Commands for the mssql, mssqlpo, mysqli, mysqlt, odbc, postgres, postgres64, postgres7, postgres8, sqlite, sqlitepo, sybase and sybase_ase Drivers. The Transaction Module will add 10-12k to the libraries memory overhead.
Transaction Database Commands |
$db->StartTrans()
$db->BeginTrans()
$db->CompleteTrans($autoComplete)
$db->CommitTrans($ok)
$db->RollbackTrans()
$db->FailTrans()
$db->HasFailedTrans()
$db->RowLock($tables, $where)
$db->CommitLock($table)
$db->RollbackLock($table) |
|
Extend Module Commands (module included with ADOdb Lite)
The Extend Module contains little used but important functions. The Extend Module will add 15-20k to the libraries memory overhead.
Extend Database Commands |
$db->GetAssoc($sql, [$inputarray], [$force_array], [$first2cols])
|
|
Extend Resultset Commands |
$result->GetAssoc([$force_array])
|
|
Date Module Commands (module included with ADOdb Lite)
Date Commands have been moved to their own module. When creating a
new ADO Connection you will need to add the "date" flag if you wish to use any of these commands. The following
is a list of Date Commands. The Date Module will add
approximately 240k to the libraries memory overhead. It is recommended that you do not load the date functions unless you absolutely need them because of the high overhead. When you have selected the Date Module it will also load the adodb-time.inc.php program in support of the date functions.
Date Database Commands |
$db->DBDate($date)
$db->DBTimeStamp($timestamp)
$db->UnixDate($str)
$db->UnixTimeStamp($str)
$db->OffsetDate($dayFraction, $basedate=false) - Mysql/Postgres/MsSql based drivers only
$db->SQLDate($dateFormat, $basedate=false) - Mysql/Postgres/MsSql based drivers only
$db->UserDate($str, [$fmt])
$db->UserTimeStamp($str, [$fmt])
|
|
Date Resultset Commands |
$result->UnixDate($str)
$result->UnixTimeStamp($str)
$result->UserDate($str, [$fmt])
$result->UserTimeStamp($str, [$fmt])
|
|
|