Class PostgresTypes
java.lang.Object
io.r2dbc.postgresql.codec.PostgresTypes
Utility to look up Postgres types using
pg_type.- Since:
- 0.8.4
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PostgresTypesfrom(PostgresqlConnection connection) lookupType(String typeName) Lookup Postgres types bytypname.lookupTypes(Iterable<String> typeNames)
-
Field Details
-
NO_SUCH_TYPE
public static final int NO_SUCH_TYPE- See Also:
-
-
Method Details
-
from
-
lookupType
Lookup Postgres types bytypname. Please note thattypnameinlined to use simple statements. Therefore,typnamegets verified againstTYPENAMEto prevent SQL injection.- Parameters:
typeName- the type name. Must comply with the pattern[a-zA-Z0-9_]+- Returns:
- a mono emitting the
PostgresTypes.PostgresTypeif found orMono.empty()if not found
-
lookupTypes
-