Class ezSQL_sqlite

Description

ezSQL class - SQLite Desc..: SQLite component (part of ezSQL databse abstraction library)

Located in /sqlite/ez_sql_sqlite.php (line 14)

ezSQLcore
   |
   --ezSQL_sqlite
Variable Summary
boolean $show_errors
Method Summary
ezSQL_sqlite __construct ([string $dbpath = ''], [string $dbname = ''])
boolean connect ([string $dbpath = ''], [string $dbname = ''])
void disconnect ()
string escape (string $str)
object query (string $query)
boolean quick_connect ([string $dbpath = ''], [string $dbname = ''])
boolean select ([string $dbpath = ''], [string $dbname = ''])
string sysdate ()
Variables
Methods
Constructor __construct (line 40)

Constructor - allow the user to perform a qucik connect at the same time as initialising the ezSQL_sqlite class

  • access: public
ezSQL_sqlite __construct ([string $dbpath = ''], [string $dbname = ''])
  • string $dbpath: Path to the SQLite file Default is empty string
  • string $dbname: Name of the database Default is empty string

Redefinition of:
ezSQLcore::__construct()
Constructor of ezSQL
connect (line 67)

Try to connect to SQLite database server

  • access: public
boolean connect ([string $dbpath = ''], [string $dbname = ''])
  • string $dbpath: Path to the SQLite file Default is empty string
  • string $dbname: Name of the database Default is empty string
disconnect (line 221)

Close the database connection

  • access: public
void disconnect ()
escape (line 121)

Format a SQLite string correctly for safe SQLite insert (no matter if magic quotes are on or not)

  • access: public
string escape (string $str)
  • string $str
query (line 142)

Perform SQLite query and try to detirmin result value Basic Query - see docs for more detail

  • access: public
object query (string $query)
  • string $query
quick_connect (line 96)

In the case of SQLite quick_connect is not really needed because std.

connect already does what quick connect does - but for the sake of consistency it has been included

  • access: public
boolean quick_connect ([string $dbpath = ''], [string $dbname = ''])
  • string $dbpath: Path to the SQLite file Default is empty string
  • string $dbname: Name of the database Default is empty string
select (line 110)

No real equivalent of mySQL select in SQLite once again, function included for the sake of consistency

  • access: public
boolean select ([string $dbpath = ''], [string $dbname = ''])
  • string $dbpath: Path to the SQLite file Default is empty string
  • string $dbname: Name of the database Default is empty string
sysdate (line 131)

Return SQLite specific system date syntax i.e. Oracle: SYSDATE Mysql: NOW()

  • access: public
string sysdate ()

Inherited Methods

Inherited From ezSQLcore

ezSQLcore::__construct()
ezSQLcore::debug()
ezSQLcore::donation()
ezSQLcore::dumpvar()
ezSQLcore::flush()
ezSQLcore::get_cache()
ezSQLcore::get_col()
ezSQLcore::get_col_info()
ezSQLcore::get_results()
ezSQLcore::get_row()
ezSQLcore::get_set()
ezSQLcore::get_var()
ezSQLcore::hide_errors()
ezSQLcore::isConnected()
ezSQLcore::register_error()
ezSQLcore::show_errors()
ezSQLcore::store_cache()
ezSQLcore::timer_elapsed()
ezSQLcore::timer_get_cur()
ezSQLcore::timer_start()
ezSQLcore::timer_update_global()
ezSQLcore::vardump()
Class Constants

Documentation generated on Fri, 06 Apr 2012 10:51:40 +0200 by phpDocumentor 1.4.4