Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
node = "22.11.0"
pnpm = "9.15.3"

[env]
CS_EQL_VERSION="eql-1.0.0"

[tasks."postgres:eql:download"]
alias = 'e'
description = "Download latest EQL release"
Expand All @@ -14,15 +17,15 @@ mkdir sql

# install script
if [ -z "$CS_EQL_PATH" ]; then
curl -sLo sql/cipherstash-encrypt.sql https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-encrypt.sql
curl -sLo sql/cipherstash-encrypt.sql https://github.com/cipherstash/encrypt-query-language/releases/download/${CS_EQL_VERSION}/cipherstash-encrypt.sql
else
echo "Using EQL: ${CS_EQL_PATH}"
cp "$CS_EQL_PATH" sql/cipherstash-encrypt.sql
fi

# uninstall script
if [ -z "$CS_EQL_UNINSTALL_PATH" ]; then
curl -sLo sql/cipherstash-encrypt-uninstall.sql https://github.com/cipherstash/encrypt-query-language/releases/latest/download/cipherstash-encrypt-uninstall.sql
curl -sLo sql/cipherstash-encrypt-uninstall.sql https://github.com/cipherstash/encrypt-query-language/releases/download/${CS_EQL_VERSION}/cipherstash-encrypt-uninstall.sql
else
echo "Using EQL: ${CS_EQL_PATH}"
cp "$CS_EQL_UNINSTALL_PATH" sql/cipherstash-encrypt-uninstall.sql
Expand Down