Repository navigation
v0.28.0
Added
- Added the
pgtypes.Inetforinettype in PostgreSQL. (thanks @gstarikov) - Added the
pgtypes.Macaddrformacaddrandmacaddr8types in PostgreSQL. - Added the
pgtypes.LSNtype for thepg_lsntype in PostgreSQL. - Added the
pgtypes.TxIDSnapshottype for thetxid_snapshottype in PostgreSQL. - Added the
pgtypes.TSVectortype for thetsvectortype in PostgreSQL. - Added
AliasOfproperty to codegen type definitions to allow for defining types that have their own randomization logic. - Added
DependsOnproperty to codegen type definitions to allow for defining types that depend on other types. This ensures that necessary code for the dependent types is generated. - Add
xmltype definition for custom randomization logic. - Add the
Cast()starter to all dialects to buildCAST(expr AS type)expressions. - Load index information for MySQL, PostgreSQL, and SQLite tables. (thanks @mbezhanov)
Changed
- Changed the
parraypackage topgtypes. - Moved
HStoreto thepgtypespackage. - Simplified how random expressions are written for types by using standalone functions instead of a single generic function.
- The default
DebugPrinternow prints args a bit more nicely by using thierValue()method if they implement thedriver.Valuerinterface. - Only generate 2 random values when testing random expressions.
Removed
- Removed
types.Stringer[T]. It makes assumptions for how the type should be scanned and is not reliable.
Fixed
- Do not add
FROMclause toSELECTqueries that are used as subqueries. - Enum values are now checked for validity after scanning.
New Contributors
- @gstarikov made their first contribution in #234
- @mbezhanov made their first contribution in #236
Full Changelog: v0.27.1...v0.28.0