polyfactory
polyfactory copied to clipboard
fix(sqla_factory): fix json type error and pg dialect default value e…
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)
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/542