resolveOid

internal fun resolveOid(typeName: String, requestedSchema: String, isArray: Boolean = false, searchPath: List<String>): Int

Resolves the OID of a type given its name and an optional schema.

Return

the resolved OID.

Parameters

typeName

the name of the type.

requestedSchema

the schema where the type belongs (can be empty).

isArray

whether to resolve the OID for the array type of the given type.

searchPath

the list of schemas to search if the schema is not explicitly provided.

Throws

if the type cannot be found or is ambiguous.