/sql/sqlite3abstract
[return to app]1
<?php
2 abstract class sqlite3abstract extends SQLite3 {
3 /**
4 * The database method used to sanitize user input strings
5 */
6 const ESCAPE_STRING = 'escapeString';
7
8 /**
9 * Inserts a new row or updates the content of an existing one
10 * Takes the same parameters as the insertSql()
11 *
12 * @param array $args
13 * @return string
14 */
15 public function insertOrUpdateSql(array $args) {
16 $sql = 'insert or replace' . substr($this->insertSql($args), 6);
17 return $sql;
18 }
19 }