From 4328dd17bfcd4c33a77c4405d52c3660a6c62bf5 Mon Sep 17 00:00:00 2001 From: nil0j Date: Fri, 27 Sep 2024 17:27:02 +0200 Subject: update --- rust/scripts/create_db.sh | 5 ++- rust/scripts/create_user.sql | 4 +- rust/scripts/populate.sh | 13 ++++++ rust/scripts/populate/.gitignore | 3 ++ rust/scripts/populate/albums.py | 38 +++++++++++++++++ rust/scripts/populate/api.py | 21 ++++++++++ rust/scripts/populate/create_db.sql | 39 +++++++++++++++++ rust/scripts/populate/database.py | 83 +++++++++++++++++++++++++++++++++++++ rust/scripts/populate/main.py | 46 ++++++++++++++++++++ rust/scripts/populate/parser.py | 83 +++++++++++++++++++++++++++++++++++++ rust/scripts/populate/structures.py | 13 ++++++ 11 files changed, 345 insertions(+), 3 deletions(-) create mode 100644 rust/scripts/populate.sh create mode 100644 rust/scripts/populate/.gitignore create mode 100644 rust/scripts/populate/albums.py create mode 100644 rust/scripts/populate/api.py create mode 100644 rust/scripts/populate/create_db.sql create mode 100644 rust/scripts/populate/database.py create mode 100644 rust/scripts/populate/main.py create mode 100644 rust/scripts/populate/parser.py create mode 100644 rust/scripts/populate/structures.py (limited to 'rust/scripts') diff --git a/rust/scripts/create_db.sh b/rust/scripts/create_db.sh index cddcdd9..4e6ebc1 100644 --- a/rust/scripts/create_db.sh +++ b/rust/scripts/create_db.sh @@ -1,10 +1,11 @@ #!/bin/bash -echo "choose a password for the database: 'input;" +echo "choose a password for the database:" read input -echo $(pwd) echo "creating database..." sudo mariadb -u root <