mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-17 05:09:25 +00:00
wip: mysql driver
add tests for pg driver and mysql driver (in progress)
This commit is contained in:
16
api/scripts/teardown-test-db.sh
Normal file
16
api/scripts/teardown-test-db.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Clean up PostgreSQL test data
|
||||
docker exec -i db-postgres-test psql -U postgres <<EOF
|
||||
DROP TABLE IF EXISTS test_table;
|
||||
EOF
|
||||
|
||||
# Clean up MySQL test data
|
||||
docker exec -i db-mysql-test mysql -uroot -pmysecretpassword --database=test_db<<EOF
|
||||
DROP TABLE IF EXISTS test_table;
|
||||
EOF
|
||||
|
||||
# Stop and remove Docker containers and volumes
|
||||
docker-compose down -v
|
||||
|
||||
echo "Test databases are cleaned up"
|
||||
Reference in New Issue
Block a user