Ready to start adding SQL binding

This commit is contained in:
2025-12-12 13:43:30 +00:00
parent 79aabd9b62
commit 4222eba8ba
5 changed files with 18 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "ZXDB"]
path = ZXDB
url = https://github.com/zxdb/ZXDB

1
ZXDB Submodule

Submodule ZXDB added at 3784c91bdd

12
bin/import_mysql.sh Normal file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
mysql -uroot -p -hquinn < ZXDB/ZXDB_mysql.sql
{ 1 ↵ git:feat/zxdb ✗› v22.21.1
echo "SET @OLD_SQL_MODE := @@SESSION.sql_mode;"
echo "SET SESSION sql_mode := REPLACE(@@SESSION.sql_mode, 'ONLY_FULL_GROUP_BY', '');"
cat ZXDB/scripts/ZXDB_help_search.sql
echo "SET SESSION sql_mode := @OLD_SQL_MODE;"
echo "CREATE ROLE 'zxdb_readonly';"
echo "GRANT SELECT, SHOW VIEW ON `zxdb`.* TO 'zxdb_readonly';"
} | mysql -uroot -p -hquinn zxdb
mysqldump --no-data -hquinn -uroot -p zxdb > ZXDB/ZXDB_mysql_STRUCTURE_ONLY.sql

1
example.env Normal file
View File

@@ -0,0 +1 @@
ZXDB_URL=mysql://username:password@hostname:3306/zxdb_imported_db

View File

@@ -5,7 +5,7 @@ import NavbarClient from "@/components/Navbar";
export const metadata: Metadata = {
title: "Spectrum Next Explorer",
description: "A platform for exploring the Spectrum Next hardware",
description: "A platform for exploring the Spectrum Next ecosystem",
robots: { index: true, follow: true },
formatDetection: { email: false, address: false, telephone: false },
};