add jsonb in postgresql

This commit is contained in:
huangsong
2021-12-21 16:33:50 +08:00
parent 14b30baf40
commit 070ff023a0
2 changed files with 30 additions and 0 deletions

View File

@ -140,6 +140,13 @@ You can pass `timezone=True` for timezone aware database column.
* Sqlalchemy column: `sqlalchemy.JSON`
* Type (used for pydantic): `pydantic.Json`
### JSONB
`JSONB()` has no required parameters, only support it in the postgresql.
* Sqlalchemy column: `sqlalchemy.dialects.postgresql.JSONB`
* Type (used for pydantic): `pydantic.Json`
### LargeBinary
`LargeBinary(max_length)` has a required `max_length` parameter.