File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
driver-adapters-wasm/pg-cf-hyperdrive Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4444# ✅ Created new Hyperdrive config: 9b94003290f9432c9c59681505b62395
4545# 📋 To start using your config from a Worker, add the following binding configuration to your Wrangler configuration file:
4646# ```
47- # WARN: The ouput seems pretty inconistent. Sometimes you get soem JSON afterwards, soemtimes some YAML. Safest seem to be to grep for the id.
47+ # WARN: The ouput seems pretty inconistent. Sometimes you get some JSON afterwards, soemtimes some YAML. Safest seem to be to grep for the id.
4848
4949# if DATABASE_URL is not set, exit
5050if [ -z " $DATABASE_URL " ]; then
@@ -53,7 +53,7 @@ if [ -z "$DATABASE_URL" ]; then
5353fi
5454
5555npx wrangler hyperdrive create $HYPERDRIVE_NAME --connection-string=\" $DATABASE_URL \" | tee $TMP_FILE
56- export HYPERDRIVE_ID=$( cat $TMP_FILE | grep -oE ' Hyperdrive config: [a-zA-Z0-9]+' | awk ' {print $3 }' )
56+ export HYPERDRIVE_ID=$( cat $TMP_FILE | grep -oE ' Hyperdrive PostgreSQL config: [a-zA-Z0-9]+' | awk ' {print $4 }' )
5757
5858cat << EOF > wrangler.toml
5959name = "pg-cf-hyperdrive"
You can’t perform that action at this time.
0 commit comments