summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2021-01-24 14:37:08 +0100
committerDamien Regad <dregad@mantisbt.org>2021-01-24 14:37:08 +0100
commit8856265c933087030627484c53d36ed5dae29e86 (patch)
treeb01995e8724c3d6647590be1e021ac3f959ad8f5 /perf
parent1ac1ae3625509e85d7b0b36fe8d55b1a8ba04363 (diff)
parentd3a7fa0f8c5c2a863da144f3d2b4dfb23396bca9 (diff)
downloadadodb-8856265c933087030627484c53d36ed5dae29e86.tar.gz
adodb-8856265c933087030627484c53d36ed5dae29e86.tar.bz2
adodb-8856265c933087030627484c53d36ed5dae29e86.zip
Merge remote-tracking branch 'origin/master' into master
Diffstat (limited to 'perf')
-rw-r--r--perf/perf-sqlite3.inc.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/perf/perf-sqlite3.inc.php b/perf/perf-sqlite3.inc.php
new file mode 100644
index 00000000..19198d5b
--- /dev/null
+++ b/perf/perf-sqlite3.inc.php
@@ -0,0 +1,40 @@
+<?php
+
+// security - hide paths
+if (!defined('ADODB_DIR')) die();
+
+class perf_sqlite3 extends adodb_perf{
+
+ var $tablesSQL = "SELECT * FROM sqlite_master WHERE type='table'";
+
+ var $createTableSQL = "CREATE TABLE adodb_logsql (
+ created datetime NOT NULL,
+ sql0 varchar(250) NOT NULL,
+ sql1 text NOT NULL,
+ params text NOT NULL,
+ tracer text NOT NULL,
+ timer decimal(16,6) NOT NULL
+ )";
+
+ var $settings = array();
+
+ function __construct(&$conn)
+ {
+ $this->conn = $conn;
+ }
+
+ function tables($orderby='1')
+ {
+ if (!$this->tablesSQL){
+ return false;
+ }
+
+ $rs = $this->conn->execute($this->tablesSQL);
+ if (!$rs) {
+ return false;
+ }
+
+ $html = rs2html($rs, false, false, false, false);
+ return $html;
+ }
+}