
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
oracle-gopher
Advanced tools
Boilerplate Node.js middleware that facilitates connections and transactions with Oracle databases.
Boilerplate Node.js middleware that facilitates connections and transactions with Oracle databases.
Download the following TWO Oracle Instant Client Packages (here: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html ). Please make sure to download the correct packages for your system architecture (i.e. 64 bit vs 32 bit)
Instant Client Package - Basic or Basic Lite: Contains files required to run OCI, OCCI, and JDBC-OCI applications
Instant Client Package - SDK: Contains additional header files and an example makefile for developing Oracle applications with Instant Client
From a terminal window:
unzip instantclient-basic-macos.x64-11.2.0.4.0.zip -d /oracle
unzip instantclient-sdk-macos.x64-11.2.0.3.0.zip -d /oracle
##### Oracle Instant Client 11.2 #####
OCI_HOME=/oracle/instantclient_11_2
OCI_LIB_DIR=$OCI_HOME
OCI_INC_DIR=$OCI_HOME/sdk/include
OCI_INCLUDE_DIR=$OCI_HOME/sdk/include
OCI_VERSION=11
DYLD_LIBRARY_PATH=$OCI_LIB_DIR
cd /oracle/instantclient_11_2
ln -s libclntsh.dylib.11.1 libclntsh.dylib
ln -s libocci.dylib.11.1 libocci.dylib
npm install oracle-gopher
var Gopher = require('oracle-gopher');
var tunnel = {
user : "USERNAME", //mandatory
password : "PASSWORD", //mandatory
connectString : "HOST:PORT/SERVICE" //mandatory
};
var gopher = new Gopher(tunnel);
/*-------------------------------Foraging for Data-------------------------------*/
//Set Foraging Instructions via the Garden Object:
var garden = {
dbStatement : "SELECT dummy FROM DUAL WHERE dummy = :DummyValue", //mandatory
outputFormat : "array", //not mandatory. will use default if not explicitly set.
maxRowsReturned : 100, //not mandatory. will use default if not explicitly set.
bindVariables : {"DummyValue" : "X"} //not mandatory. use in conjunction with dbStatement when bind variables are present.
};
// Send Gopher on it's way to return with data...
gopher.forage(garden,
function(err,result){
if (err) {
return console.log(err);
}
return console.log(result);
}
);
FAQs
Boilerplate Node.js middleware that facilitates connections and transactions with Oracle databases.
The npm package oracle-gopher receives a total of 0 weekly downloads. As such, oracle-gopher popularity was classified as not popular.
We found that oracle-gopher demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.