Skip to content

Commit a4f5725

Browse files
committed
Allow using tables and views
pulled out of #31
1 parent 06d854c commit a4f5725

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Model/Datasource/Database/Sqlite3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function listSources() {
219219
return $cache;
220220
}
221221

222-
$result = $this->fetchAll("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;", false);
222+
$result = $this->fetchAll("SELECT name FROM sqlite_master WHERE type='table' OR type='view' ORDER BY name;", false);
223223

224224
if (!$result || empty($result)) {
225225
return array();

0 commit comments

Comments
 (0)