github.com/blend/go-sdk@v1.20220411.3/template/testdata/process.yml (about) 1 {{- $database := .Var "db.database" | as_string -}} 2 {{- $username := .Var "db.username" | as_string -}} 3 {{- $password := .Var "db.password" | as_string -}} 4 DROP DATABASE IF EXISTS {{ $database }}; 5 CREATE DATABASE IF NOT EXISTS {{ $database }}; 6 CREATE USER IF NOT EXISTS {{ $username }} WITH PASSWORD '{{ $password }}'; 7 GRANT ALL ON DATABASE {{ $database }} TO {{ $username }};