New language: MySQL

Good god why do these people make it so hard for me
This commit is contained in:
Radon Rosborough 2020-07-18 12:31:55 -06:00
parent db1553b9f9
commit fc671226e0
2 changed files with 14 additions and 0 deletions

View File

@ -979,6 +979,15 @@ message:
template: `main()
write "Hello, world!",!
quit
`,
},
mysql: {
aliases: ["my"],
name: "MySQL",
repl: `rm -rf data && mysqld -h "$PWD/data" --initialize-insecure && (mysqld -h "$PWD/data" --socket="$PWD/socket" --pid-file="$PWD/pid-file" --mysqlx=OFF --skip-networking &) && while [[ ! -e socket ]]; do sleep 0.01; done && mysql --socket="$PWD/socket" -u root`,
main: "main.sql",
run: `rm -rf data && mysqld -h "$PWD/data" --initialize-insecure && (mysqld -h "$PWD/data" --socket="$PWD/socket" --pid-file="$PWD/pid-file" --mysqlx=OFF --skip-networking &) && while [[ ! -e socket ]]; do sleep 0.01; done && (mysql --socket="$PWD/socket" -u root < main.sql; mysql --socket="$PWD/socket" -u root)`,
template: `SELECT 'Hello, world!'
`,
},
nim: {

View File

@ -13,6 +13,9 @@ qemu-user-static
# MUMPS
fis-gtm
# MySQL
mysql-server
# Nim
nim
@ -79,4 +82,6 @@ apt-get update
apt-get install -y $(grep -v "^#" <<< "$packages")
rm -rf /var/lib/apt/lists/*
rm /etc/mysql/mysql.conf.d/mysqld.cnf
rm "$0"