- Add GCP Spanner support (#211 by @kikihakiem)
- Remove ClickHouse underscore import by (#220 by @slsyy)
- test: remove private api usages in tests (#221 by @slsyy)
- CI: use
docker compose
instead ofdocker-compose
(#214 by @slsyy) - Updated dependencies.
- Reset sequences in a single exec to improve performance (#208 by @slsyy)
- Skip checksum calculation when not needed to improve performance (#207 by @slsyy).
- Add
SkipTableChecksumComputation
option (#203, #206 by @slsyy) - PostgreSQL: Run some queries concurrently to improve performance (#205 by @slsyy).
- Optimize Docker image a bit (#204 by @slsyy).
- Add
OVERRIDING SYSTEM VALUE
forINSERT
statements on PostgreSQL (#183 by @amakmurr). - Upgraded dependencies.
- Fix usage with Microsoft SQL Server when the database is configured with a case sensitive setting (#182 by @wxiaoguang).
- Updated some dependencies.
- Updated database systems versions on the Docker setup used by CI (#187).
- Added support do ClickHouse (#51, #162 by @titusjaka, #115 by @shumorkiniv, #81 by @kangoo13).
- Add option to disable database cleanup (#161).
- Start releasing binaries for Mac M1 (#149, #150).
- Upgraded to Go v1.20 (#165).
- Upgraded several dependencies.
- Upgrade
golang.org/x/crypto
dependency that includes a security fix (#136).
- Add ability to load from a custom filesystem (#134, pkg.go.dev/io/fs).
- Upgrade to gopkg.in/yaml.v3, which includes a possible security vulnerability (#132, go-yaml/yaml#666).
- Upgrade dependencies
- Fix possible security vulnerability by upgrading golang.org/x/crypto (#100).
- Add support for dumping a database using the CLI (use the
--dump
flag) (#88, #63). - Support SkipResetSequences and ResetSequencesTo for MySQL and MariaDB (#91).
- Fix insert of JSON values on PostgreSQL when using
binary_parameters=yes
in the connection string (#83, #84, lib/pq#528). - Officially support binary columns through hexadecimal strings (#48, #82).
- Fix for Microsoft SQL Server databases with views (#78).
- Add support to CockroachDB (#77).
- Add support for the github.com/jackc/pgx PostgreSQL driver (#71, #74).
- Fix bug where some tables were empty due to
ON DELETE CASCADE
(#67, #70). - Fix SQLite version (#73).
- On MySQL, return a clearer error message when a table doesn't exist (#69).
- Add support for loading multiple files and directories (#65).
- Dump: Fix column order in generated YAML files (#62).
- testfixtures now work with both
mssql
andsqlserver
drivers. Note that themssql
one is deprecated, though. So try to migrate tosqlserver
once possible.
- Using
sqlserver
driver instead of the deprecatedmssql
(#58).
- The import path changed from
gopkg.in/testfixtures.v2
togithub.com/go-testfixtures/testfixtures/v3
. - This package no longer support Oracle databases. This decision was taken because too few people actually used this package with Oracle and it was the most difficult to test (we didn't run on CI due the lack of an official Docker image, etc).
- The public API was totally rewritten to be more flexible and ideomatic. It now uses functional options. It differs from v2, but should be easy enough to upgrade.
- Some deprecated APIs from v2 were removed as well.
- This now requires Go >= 1.13.
- We now have a CLI so you can easily use testfixtures to load a sample database from fixtures if you want.
- Templating via text/template is now available. This allows some fancier use cases like generating data or specific columns dynamically.
- It's now possible to choose which time zone to use when parsing timestamps
from fixtures. The default is the same as before, whatever is set on
time.Local
. - Errors now use the new
%w
verb only available on Go >= 1.13.
- Travis and AppVeyor are gone. We're using GitHub Actions exclusively now. The whole suite is ran inside Docker (with help of Docker Compose), so it's easy to run tests locally as well.
Check the new README for some examples!
- Add support for TimescaleDB (#53).
- Fixes related to use of foreign key pragmas on MySQL (#43).
- This library now supports Go Modules;
- Also allow
.yaml
(as an alternative to.yml
) as the file extension (#42).
- Allowing disabling reset of PostgreSQL sequences (#38).
- Add public function DetectTestDatabase (#35, #36).
- Fix for MySQL/MariaDB: ignoring views on operations that should be run only on tables (#33).
- Fix for multiple schemas on Microsoft SQL Server (#29 and #30);
- Configuring AppVeyor CI to also test for Microsoft SQL Server.
Sorry, we don't have changelog for older releases 😢.