litestar-org / polyfactory

Simple and powerful factories for mock data generation
https://polyfactory.litestar.dev/
MIT License
988 stars 78 forks source link

fix(sqla_factory): fix json type error and pg dialect default value e… #542

Closed wangxin688 closed 3 months ago

wangxin688 commented 3 months ago

Description

Fix json type error in #530. Define JSON type for mysql, mssql, sqlite and postgresql dialect for each one.

one more things I made a fix: for CIDR type postgresql: I believe it should be network rather than a IP address, so netmask should be generated for CIDR type ^^(I'm a network engineer with CCIE before). for INET type: it can be a IP address without netmask or a ip_network address. So I change CIDR to faker(network=True) and INET to faker(network=False)

github-actions[bot] commented 3 months ago

Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/542