v0.28.0
Added
- Added the
pgtypes.Inet
forinet
type in PostgreSQL. (thanks @gstarikov) - Added the
pgtypes.Macaddr
formacaddr
andmacaddr8
types in PostgreSQL. - Added the
pgtypes.LSN
type for thepg_lsn
type in PostgreSQL. - Added the
pgtypes.TxIDSnapshot
type for thetxid_snapshot
type in PostgreSQL. - Added the
pgtypes.TSVector
type for thetsvector
type in PostgreSQL. - Added
AliasOf
property to codegen type definitions to allow for defining types that have their own randomization logic. - Added
DependsOn
property 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
xml
type 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
parray
package topgtypes
. - Moved
HStore
to thepgtypes
package. - Simplified how random expressions are written for types by using standalone functions instead of a single generic function.
- The default
DebugPrinter
now prints args a bit more nicely by using thierValue()
method if they implement thedriver.Valuer
interface. - 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
FROM
clause toSELECT
queries 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