Registry / devops / oci-databasetoolsruntime

oci-databasetoolsruntime

JSON →
library2.132.0jsnpmunverified

Official Oracle Cloud Infrastructure Node.js client for the Database Tools Runtime Service. Version 2.132.0 is current; follows OCI SDK release cadence with frequent updates. Key differentiator: part of the unified OCI TypeScript SDK, providing consistent authentication, signing, and API patterns across all OCI services. Supports both synchronous and asynchronous operations, automatic retries, and configurable timeouts.

npm install oci-databasetoolsruntime
INSTALL
IMPORT
SIG · OCI-DATABASETOOLSR
O
oci-databasetoolsruntime
devopsjavascriptv2.132.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DatabaseToolsRuntimeClient
import { DatabaseToolsRuntimeClient } from 'oci-databasetoolsruntime'
const DatabaseToolsRuntimeClient = require('oci-databasetoolsruntime').DatabaseToolsRuntimeClient
ESM and CJS both supported; default export is not the client.
models
import * as models from 'oci-databasetoolsruntime/lib/model'
import { models } from 'oci-databasetoolsruntime'
Models are not exported from the main entry; import from the lib/model subpath.
requests
import * as requests from 'oci-databasetoolsruntime/lib/request'
import { requests } from 'oci-databasetoolsruntime'
Request types are in a separate subpath module.

Demonstrates how to set up OCI authentication using config file and list work requests for Database Tools Runtime.

const common = require('oci-common'); const { DatabaseToolsRuntimeClient } = require('oci-databasetoolsruntime'); const provider = new common.ConfigFileAuthenticationDetailsProvider(); const client = new DatabaseToolsRuntimeClient({ authenticationDetailsProvider: provider }); async function listWorkRequests() { try { const listWorkRequestsRequest = { compartmentId: 'your-compartment-ocid' }; const response = await client.listWorkRequests(listWorkRequestsRequest); console.log('Work requests:', response.workRequestCollection.items); } catch (error) { console.error('Error:', error); } } listWorkRequests();
Debug
Known issues
breakingTypeScript definitions may be incomplete for some request shapes
fix
Check the generated types; manually extend interfaces if needed.
affects: all
deprecatedThe oci-common package is required but not automatically installed
fix
Run `npm install oci-common` as a peer dependency.
affects: all
gotchaModels and requests are not exported from main entry
fix
Import from 'oci-databasetoolsruntime/lib/model' or 'oci-databasetoolsruntime/lib/request'.
affects: >=2.0.0
gotchaConfig file path defaults to ~/.oci/config; OCI SDK respects OCI_CONFIG_FILE env variable
fix
Set OCI_CONFIG_FILE environment variable to override.
affects: all
deprecatedUsage of older Node.js versions (<10) may cause issues with crypto primitives
fix
Upgrade Node.js to version 10 or later.
affects: <10
Errors
Common errors & fixes
TypeError: Cannot destructure property 'listWorkRequests' of 'client' as it is undefined
Using destructured method call instead of invoking the method on client object.
fix
Call client.listWorkRequests(request) directly, not { listWorkRequests } = client; listWorkRequests()
Error: getaddrinfo ENOTFOUND iaas.us-phoenix-1.oraclecloud.com
Network connectivity issues or incorrect OCI region endpoint.
fix
Verify your OCI region and network access; check the endpoint URL for the service.
UnhandledPromiseRejectionWarning: Error: OciError: NotAuthenticated
Authentication provider configuration missing or invalid credentials.
fix
Ensure your OCI config file has valid user OCID, tenancy OCID, fingerprint, and private key path.
Upgrade
Version history
2.132.0latest on npm
Audit
Dependencies
oci-commonrequiredShared core module for authentication, signing, and HTTP client
Agent activity
2 hits · last 30 days
node
2
Resources
oci-databasetoolsruntime — npm install oci-databasetoolsruntime · libregistry