Database common API
[Database]

Classes

interface  utyDb
 Data Access interface. More...

Functions

 utydb_phpfilename ($dbtype)
 utydb_create ($dbtype)
 utydb_types ()

Function Documentation

utydb_create ( dbtype  ) 
Parameters:
dbtype (string) one of the supported db types. e.g. 'sqlite' or 'mysql'
Returns:
an object of type utyDb<ext-mame> e.g. utyDbSqlite, utyDbMySql

NOTABENE: dbtypes values are ALL LOWERCASE but class names ARE NOT: this function return the result given by utydb_$dbtype_create() defined in each utydb.$dbtype.php file e.g. utydb.sqlite.php => utydb_sqlite_create(), utydb.mysql.php => utydb_mysql_create() (the class name can be retrieved with the php function get_class(<object returned by utydb_create>).

See also:
utydb_types() for a list of supported types
utydb_phpfilename ( dbtype  ) 
Parameters:
dbtype (string) one of the supported db types. e.g. 'sqlite', 'mysql'
Returns:
the full path to the php script filename corresponding to dbtype

NOTABENE: dbtypes values are ALL LOWERCASE. Filenames are utydb.$dbtype.php all lowercase, e.g. utydb.sqlite.php, utydb.mysql.php. Use this naming convenction if you write another db extension

utydb_types (  ) 
Returns:
an array containing all supported dbtype

NB: dbnames are retrieved listing files in UTILYTY/db that match utydb.*.php and extracting the middle of the filename.

 All Classes Files Functions Variables Enumerations

Copyright © 2010 Attilio Pavone - www.utillyty.eu