Validates and converts raw asyncpg values into typed Python objects via Pydantic.
Type adapters are cached so repeated conversions to the same target type
skip adapter construction.
parse(type_, value)
classmethod
Validate value against type_ and return the result.
Parameters:
| Name |
Type |
Description |
Default |
type_
|
type[T]
|
The target type to validate against.
|
required
|
value
|
Record | list[Record] | Any
|
A raw value, Record, or list of Records to convert.
|
required
|