mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2025-01-06 04:16:21 +03:00
rr-quickcheck MySQL: simplify scripts.
This commit is contained in:
parent
d316472332
commit
ce780aaf28
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
. ./sh
|
||||
|
||||
createdb_command() {
|
||||
cat <<EOF
|
||||
CREATE SCHEMA ARBITRARY0;
|
||||
GRANT ALL ON ARBITRARY0.* TO ${USER}@'localhost';
|
||||
GRANT GRANT OPTION ON ARBITRARY0.* TO ${USER}@'localhost';
|
||||
EOF
|
||||
}
|
||||
|
||||
do_mysql_root createdb_command
|
@ -8,4 +8,4 @@ main =
|
||||
defaultMain . tests $
|
||||
connectMySQL
|
||||
defaultMySQLConnectInfo
|
||||
{ mysqlUser = "", mysqlPassword = "testpassword", mysqlDatabase = "ARBITRARY0" }
|
||||
{ mysqlUser = "hrr-tester", mysqlDatabase = "ARBITRARY0" }
|
||||
|
3
rr-quickcheck/RDBMs/MySQL/schema.sql
Normal file
3
rr-quickcheck/RDBMs/MySQL/schema.sql
Normal file
@ -0,0 +1,3 @@
|
||||
CREATE SCHEMA ARBITRARY0;
|
||||
GRANT ALL ON ARBITRARY0.* TO 'hrr-tester'@'127.0.0.1';
|
||||
GRANT GRANT OPTION ON ARBITRARY0.* TO 'hrr-tester'@'127.0.0.1';
|
@ -1,7 +0,0 @@
|
||||
## -*- sh -*-
|
||||
|
||||
do_mysql_root() {
|
||||
cmd=$1
|
||||
$cmd
|
||||
$cmd | mysql -p -u root
|
||||
}
|
Loading…
Reference in New Issue
Block a user