goose
goose copied to clipboard
A database migration tool. Supports SQL migrations and Go functions.
solving issue recited below: https://github.com/pressly/goose/issues/388 by adding execution calculation on migration execution.
- [x] Add VerticaDialect - [x] Add `vertica-sql-go` dependency - [x] Add `!no_vertica` build tag in `driver_vertica.go` - [x] Updated README - [x] Updated CLI help message - [x] Test...
This PR allows a context to be set in the database transactions used to run .go and .sql migrations. [db.BeginTx](https://golang.org/pkg/database/sql/#DB.BeginTx) is called Instead of [db.Begin]( https://golang.org/pkg/database/sql/#DB.Begin) which allows the caller...
There was a [breaking change in ClickHouse version 22.7](https://clickhouse.com/docs/ru/whats-new/changelog/). More details here. https://github.com/ClickHouse/ClickHouse/pull/38335 > Ordinary database engine and old storage definition syntax for *MergeTree tables are deprecated. By default it's...
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.17.3 to 1.18.0. Commits 62081fe adjust for Go 1.19 changes 90c22a7 vfs: fix 32 bit targets dc2b6a0 release v1.18.0 520ebf4 vfs: New returns name e3fddbc vfs: simplify...
```diff - OK 10000000000819_uuid.sql + OK 10000000000819_uuid.sql (took 32s) goose: no migrations to run. current version: 10000000000819 ```
Add migrationNoTx, expose sql.DB. GoMigrationNoTx func(db *sql.DB) > I notice that you have commited this on branch v4. But I think it will take a long time. I want to...
I want to use orm tool like gorm. While using sql.tx to init gorm, there are some troubles. I think exposing sql.DB is better, we can use transcation by ourselves.
This PR moves the SQL parsing logic internally, mainly as a convenience to get it out of the main goose package. It also adds additional tests that make it easier...