Solutions Open Source

Référence de la classe ADODB_sqlite

Graphe d'héritage de ADODB_sqlite:

Inheritance graph
[légende]
Graphe de collaboration de ADODB_sqlite:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 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)

Attributs publics

 $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')"
 Use 'true' to store the item compressed (uses zlib).
 $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'


Documentation des fonctions membres

ADODB_sqlite::ADODB_sqlite (  ) 

ADODB_sqlite::ServerInfo (  ) 

Get server version info...

Renvoie:
An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::BeginTrans (  ) 

Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().

Renvoie:
true if succeeded or false if database does not support transactions

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::CommitTrans ( ok = true  ) 

If database does not support transactions, always return true as data always commited

Paramètres:
$ok set to false to rollback transaction, true to commit
Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::RollbackTrans (  ) 

If database does not support transactions, rollbacks always fail, so return false

Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

& ADODB_sqlite::MetaColumns ( tab  ) 

ADODB_sqlite::_init ( parentDriver  ) 

ADODB_sqlite::_insertid (  ) 

ADODB_sqlite::_affectedrows (  ) 

ADODB_sqlite::ErrorMsg (  ) 

Renvoie:
the last error message

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::ErrorNo (  ) 

Renvoie:
the last error number. Normally 0 means no error.

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::SQLDate ( fmt,
col = false 
)

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::_createFunctions (  ) 

ADODB_sqlite::_connect ( argHostname,
argUsername,
argPassword,
argDatabasename 
)

ADODB_sqlite::_pconnect ( argHostname,
argUsername,
argPassword,
argDatabasename 
)

ADODB_sqlite::_query ( sql,
inputarr = false 
)

& ADODB_sqlite::SelectLimit ( sql,
nrows = -1,
offset = -1,
inputarr = false,
secs2cache = 0 
)

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

Paramètres:
sql 
[offset] is the row to start calculations from (1-based)
[nrows] is the number of rows to get
[inputarr] array of bind variables
[secs2cache] is a private parameter only used by jlim
Renvoie:
the recordset ($rs->databaseType == 'array')

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::GenID ( seqname = 'adodbseq',
startID = 1 
)

Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;

Paramètres:
seqname name of sequence to use
startID if sequence does not exist, start at this ID
Renvoie:
0 if not supported, otherwise a sequence id

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::CreateSequence ( seqname = 'adodbseq',
start = 1 
)

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::DropSequence ( seqname  ) 

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::_close (  ) 

& ADODB_sqlite::MetaIndexes ( table,
primary = FALSE,
owner = false 
)

List indexes on a table as an array.

Paramètres:
table table name to query
primary true to only show primary keys. Not actually used for most databases
Renvoie:
array of indexes on current table. Each element represents an index, and is itself an associative array.
Array ( [name_of_index] => Array ( [unique] => true or false [columns] => Array ( [0] => firstname [1] => lastname ) )

Réimplémentée à partir de ADOConnection.


Documentation des données membres

ADODB_sqlite::$databaseType = "sqlite"

Réimplémentée à partir de ADOConnection.

Réimplémentée dans ADODB_sqlitepo.

ADODB_sqlite::$replaceQuote = "''"

string that represents FALSE for a database

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$concat_operator = '||'

maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$_errorNo = 0

ADODB_sqlite::$hasLimit = true

support mssql/access SELECT TOP 10 * FROM TABLE

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$hasInsertID = true

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$hasAffectedRows = true

supports autoincrement ID?

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$metaTablesSQL = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name"

supports affected rows for update/delete?

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$sysDate = "adodb_date('Y-m-d')"

Use 'true' to store the item compressed (uses zlib).

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$sysTimeStamp = "adodb_date('Y-m-d H:i:s')"

name of function that returns the current date

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$fmtTimeStamp = "'Y-m-d H:i:s'"

used by DBDate() as the default date format used by the database

Réimplémentée à partir de ADOConnection.

ADODB_sqlite::$_genSeqSQL = "create table %s (id integer)"

ADODB_sqlite::$_dropSeqSQL = 'drop table %s'


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:40:07 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3