aboutsummaryrefslogtreecommitdiff
path: root/gen-initialize.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gen-initialize.sh')
-rwxr-xr-xgen-initialize.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gen-initialize.sh b/gen-initialize.sh
new file mode 100755
index 0000000..8d8cb55
--- /dev/null
+++ b/gen-initialize.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+gofmt <<EOF
+package ${GOPACKAGE:-main}
+
+const initializeSQL = \`$(sed 's/`/` + "`" + `/g' "$@")\`
+EOF