types(oracledb): add NCLOB to fetchAsString type#75004
Open
wiscaksono wants to merge 2 commits into
Open
Conversation
NCLOB is supported at runtime in oracledb v6+ (see lib/settings.js)
but was missing from the @types/oracledb fetchAsString type definition.
Runtime source confirms NCLOB handling in createFetchTypeMap:
case types.DB_TYPE_CLOB:
case types.DB_TYPE_NCLOB:
map.set(types.DB_TYPE_CLOB, types.DB_TYPE_LONG);
map.set(types.DB_TYPE_NCLOB, types.DB_TYPE_LONG_NVARCHAR);
Contributor
|
@wiscaksono Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through. This is a live comment that I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 75004,
"author": "wiscaksono",
"headCommitOid": "28ce530a65c276c88b31dc8b69ef88ce26cc1432",
"mergeBaseOid": "ca06abb4cc3399ea070c122be329a22f1c3b6800",
"lastPushDate": "2026-05-15T10:10:14.000Z",
"lastActivityDate": "2026-05-15T10:10:14.000Z",
"hasMergeConflict": false,
"isFirstContribution": true,
"tooManyFiles": false,
"hugeChange": false,
"tooManyCommits": false,
"tooManyReviews": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "oracledb",
"kind": "edit",
"files": [
{
"path": "types/oracledb/index.d.ts",
"kind": "definition"
},
{
"path": "types/oracledb/oracledb-tests.ts",
"kind": "test"
}
],
"owners": [
"connorjayfitzgerald",
"dannyb648",
"jacobwheale",
"sudarshan12s",
"sharadraju"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [],
"mainBotCommentID": 4458889970,
"ciResult": "pass"
} |
Contributor
|
🔔 @connorjayfitzgerald @dannyb648 @jacobwheale @sudarshan12s @sharadraju — please review this PR in the next few days. Be sure to explicitly select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
NCLOBto thefetchAsStringtype definition.Why
oracledbv6+ supportsNCLOBinfetchAsStringat runtime (confirmed inlib/settings.js), but the@types/oracledbtype definition was missing it, causing TypeScript errors:Evidence
Runtime source (
lib/settings.js):NCLOBconstant is already exported in the type definitions, just missing fromfetchAsString.Changes
types/oracledb/index.d.ts: Addedtypeof NCLOBtofetchAsStringarray typetypes/oracledb/oracledb-tests.ts: Addedoracledb.NCLOBto fetchAsString test