Location: PHPKode > projects > Banshee PHP Framework > libraries/database/sqlite_connection.php
<?php
	/* libraries/database/sqlite_connection.php
	 *
	 * Copyright (C) by Hugo Leisink <hide@address.com>
	 * This file is part of the Banshee PHP framework
	 * http://www.banshee-php.org/
	 */

	class SQLite_connection extends database_connection {
		public function __construct($filename, $mode) {
			$this->db_close         = "sqlite_close";
			$this->db_insert_id     = "sqlite_last_insert_rowid";
			$this->db_escape_string = "sqlite_escape_string";
			$this->db_query         = "sqlite_query";
			$this->db_fetch         = "sqlite_fetch_array";
			$this->db_error         = array($this, "sqlite_last_error_string");
			$this->id_delim         = '"';

			if (($this->link = sqlite_open($filename, $mode)) == false) {
				$this->link = null;
			}
		}

		protected function sqlite_last_error_string($db_handle) {
			return sqlite_error_string(sqlite_last_error($db_handle));
		}
	}
?>
Return current item: Banshee PHP Framework