feat: add database dump, backup script, dashboard and address feature

This commit is contained in:
noooviiieee
2026-06-13 18:17:19 +07:00
parent ada87b49d0
commit fa8b6a4ea9
9 changed files with 1193 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
$pdo = new PDO('mysql:host=localhost;dbname=webgis_baru;charset=utf8', 'root', '');
$tablesStmt = $pdo->query("SHOW TABLES");
$tables = $tablesStmt->fetchAll(PDO::FETCH_COLUMN);
$schema = [];
foreach ($tables as $table) {
$stmt = $pdo->query("DESCRIBE $table");
$schema[$table] = $stmt->fetchAll(PDO::FETCH_ASSOC);
}
echo json_encode($schema, JSON_PRETTY_PRINT);