Class sqliteDbTools

Description

tools to manage a sqlite database

Located in /plugins/db/sqlite/sqlite.dbtools.php (line 17)

jDbTools
   |
   --sqliteDbTools
Variable Summary
mixed $typesInfo
Method Summary
array getFieldList (string $tableName, [string $sequence = ''])
array getTableList ()
Variables
mixed $typesInfo = array(
// type native type unified type minvalue maxvalue minlength maxlength
'bool' =>array('integer', 'boolean', 0, 1, null, null),'boolean'=>array('integer','boolean',0,1,null,null),'bit'=>array('integer','integer',0,1,null,null),'tinyint'=>array('integer','integer',-128,127,null,null),'smallint'=>array('integer','integer',-32768,32767,null,null),'mediumint'=>array('integer','integer',-8388608,8388607,null,null),'integer'=>array('integer','integer',-2147483648,2147483647,null,null),'int'=>array('integer','integer',-2147483648,2147483647,null,null),'bigint'=>array('numeric','numeric','-9223372036854775808','9223372036854775807',null,null),'serial'=>array('numeric','numeric','-9223372036854775808','9223372036854775807',null,null),'bigserial'=>array('numeric','numeric','-9223372036854775808','9223372036854775807',null,null),'autoincrement'=>array('integer','integer',-2147483648,2147483647,null,null),// for old dao files
'bigautoincrement'=>array('numeric','numeric','-9223372036854775808','9223372036854775807',null,null),// for old dao files
'float'=>array('float','float',null,null,null,null),//4bytes
'money'=>array('real','float',null,null,null,null),//4bytes
'double precision'=>array('double','decimal',null,null,null,null),//8bytes
'double'=>array('double','decimal',null,null,null,null),//8bytes
'real'=>array('real','decimal',null,null,null,null),//8bytes
'number'=>array('real','decimal',null,null,null,null),//8bytes
'binary_float'=>array('double','float',null,null,null,null),//4bytes
'binary_double'=>array('double','decimal',null,null,null,null),//8bytes
'numeric'=>array('numeric','numeric',null,null,null,null),'decimal'=>array('real','decimal',null,null,null,null),'dec'=>array('real','decimal',null,null,null,null),'date'=>array('date','date',null,null,10,10),'time'=>array('time','time',null,null,8,8),'datetime'=>array('datetime','datetime',null,null,19,19),'timestamp'=>array('datetime','datetime',null,null,19,19),// oracle/pgsql timestamp
'utimestamp'=>array('integer','integer',0,2147483647,null,null),// mysql timestamp
'year'=>array('integer','year',null,null,2,4),'interval'=>array('datetime','datetime',null,null,19,19),'char'=>array('char','char',null,null,0,255),'nchar'=>array('char','char',null,null,0,255),'varchar'=>array('varchar','varchar',null,null,0,65535),'varchar2'=>array('varchar','varchar',null,null,0,4000),'nvarchar2'=>array('varchar','varchar',null,null,0,4000),'character'=>array('varchar','varchar',null,null,0,65535),'character varying'=>array('varchar','varchar',null,null,0,65535),'name'=>array('varchar','varchar',null,null,0,64),'longvarchar'=>array('varchar','varchar',null,null,0,65535),'string'=>array('varchar','varchar',null,null,0,65535),// for old dao files
'tinytext'=>array('text','text',null,null,0,255),'text'=>array('text','text',null,null,0,65535),'mediumtext'=>array('text','text',null,null,0,16777215),'longtext'=>array('text','text',null,null,0,0),'long'=>array('text','text',null,null,0,0),'clob'=>array('text','text',null,null,0,0),'nclob'=>array('text','text',null,null,0,0),'tinyblob'=>array('blob','blob',null,null,0,255),'blob'=>array('blob','blob',null,null,0,65535),'mediumblob'=>array('blob','blob',null,null,0,16777215),'longblob'=>array('blob','blob',null,null,0,0),'bfile'=>array('blob','blob',null,null,0,0),'bytea'=>array('blob','varbinary',null,null,0,0),'binary'=>array('blob','binary',null,null,0,255),'varbinary'=>array('blob','varbinary',null,null,0,255),'raw'=>array('blob','varbinary',null,null,0,2000),'long raw'=>array('blob','varbinary',null,null,0,0),'enum'=>array('varchar','varchar',null,null,0,65535),'set'=>array('varchar','varchar',null,null,0,65535),'xmltype'=>array('varchar','varchar',null,null,0,65535),'point'=>array('varchar','varchar',null,null,0,16),'line'=>array('varchar','varchar',null,null,0,32),'lsed'=>array('varchar','varchar',null,null,0,32),'box'=>array('varchar','varchar',null,null,0,32),'path'=>array('varchar','varchar',null,null,0,65535),'polygon'=>array('varchar','varchar',null,null,0,65535),'circle'=>array('varchar','varchar',null,null,0,24),'cidr'=>array('varchar','varchar',null,null,0,24),'inet'=>array('varchar','varchar',null,null,0,24),'macaddr'=>array('integer','integer',0,0xFFFFFFFFFFFF,null,null),'bit varying'=>array('varchar','varchar',null,null,0,65535),'arrays'=>array('varchar','varchar',null,null,0,65535),'complex types'=>array('varchar','varchar',null,null,0,65535),)
(line 19)
  • access: protected

Redefinition of:
jDbTools::$typesInfo

Inherited Variables

Inherited from jDbTools

jDbTools::$dbmsStyle
jDbTools::$falseValue
jDbTools::$trueValue
jDbTools::$unifiedToPhp
jDbTools::$_conn
Methods
getFieldList (line 129)

retrieve the list of fields of a table

  • return: keys are field names and values are jDbFieldProperties objects
  • access: public
array getFieldList (string $tableName, [string $sequence = ''])
  • string $tableName: the name of the table
  • string $sequence: the sequence used to auto increment the primary key (not supported here)

Redefinition of:
jDbTools::getFieldList()
retrieve the list of fields of a table
getTableList (line 111)

returns the list of tables

  • return: list of table names
  • access: public
array getTableList ()

Redefinition of:
jDbTools::getTableList()
returns the table list

Inherited Methods

Inherited From jDbTools

jDbTools::__construct()
jDbTools::encloseName()
jDbTools::escapeValue()
jDbTools::execSQLScript()
jDbTools::getBooleanValue()
jDbTools::getFieldList()
jDbTools::getTableList()
jDbTools::getTypeInfo()
jDbTools::stringToPhpValue()
jDbTools::unifiedToPHPType()

Documentation generated on Thu, 19 Sep 2013 00:09:30 +0200 by phpDocumentor 1.4.3