⚠️ Note, starting with goose v3.18.0 (current release) the minimum supported Go version is go1.20
New features
Add environment variable substitution for SQL migrations. (#604)
This feature is disabled by default, and can be enabled by adding an annotation to the
migration file:
-- +goose ENVSUB ON
When enabled, goose will attempt to substitute environment variables in the SQL migration
queries until the end of the file, or until the annotation -- +goose ENVSUB OFF is found. For
example, if the environment variable REGION is set to us_east_1, the following SQL migration
will be substituted to SELECT * FROM regions WHERE name = 'us_east_1';
-- +goose ENVSUB ON
-- +goose Up
SELECT * FROM regions WHERE name = '${REGION}';
Add environment variable substitution for SQL migrations. (#604)
This feature is disabled by default, and can be enabled by adding an annotation to the
migration file:
-- +goose ENVSUB ON
When enabled, goose will attempt to substitute environment variables in the SQL migration
queries until the end of the file, or until the annotation -- +goose ENVSUB OFF is found. For
example, if the environment variable REGION is set to us_east_1, the following SQL migration
will be substituted to SELECT * FROM regions WHERE name = 'us_east_1';
-- +goose ENVSUB ON
-- +goose Up
SELECT * FROM regions WHERE name = '${REGION}';
Add native Turso support with libsql driver. (#658)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/pressly/goose/v3 from 3.17.0 to 3.18.0.
Release notes
Sourced from github.com/pressly/goose/v3's releases.
Changelog
Sourced from github.com/pressly/goose/v3's changelog.
Commits
6f5c152
Release v3.18.0d9fa725
fix:ListMigrations
query for YDB (#685)2b41513
build: bump Go deps and add 1.22.0-rc.2 to CI matrix (#686)1b23a2d
docs: update README.mdf3ac856
build(deps): bump the gomod group with 1 update (#677)120e6a3
feat: environment variables interpolation (#604)44aea13
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#676)ed3f113
dev: add beta command to CLI; fix build constraints (#672)52fd411
chore(deps): Update libsql-client-go to new tursodatabase organization (#671)14c93ad
feat: add native Turso support (#658)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show