developer_analysis/common.sh

20 lines
271 B
Bash
Raw Normal View History

2023-01-11 02:30:40 +00:00
#!/bin/bash
#set -e
DATABASE_URL=$(realpath "./developers.sqlite")
createUUID () {
uuidgen | tr '[:upper:]' '[:lower:]'
}
db () {
sqlite3 "${DATABASE_URL}" "${1}"
}
setup () {
cat "./setup.sql" | sqlite3 "${DATABASE_URL}"
echo "Setup ${DATABASE_URL}..."
}
setup