|
|
@@ -1157,4 +1157,18 @@ function revokeToken($array)
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+function getSchema()
|
|
|
+{
|
|
|
+ try {
|
|
|
+ $connect = new Dibi\Connection([
|
|
|
+ 'driver' => 'sqlite3',
|
|
|
+ 'database' => $GLOBALS['dbLocation'] . $GLOBALS['dbName'],
|
|
|
+ ]);
|
|
|
+ $result = $connect->fetchAll(' SELECT name, sql FROM sqlite_master WHERE type=\'table\' ORDER BY name');
|
|
|
+ return $result;
|
|
|
+ } catch (Dibi\Exception $e) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|