![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Sets up a Oracle connection inside an SSH tunnel.
.connect(obj sshConfig, obj oracleConfig)
sshConfig
should be an object according to the ssh2
package.oracleConfig
should be an object according to the oracle
package.client
from the oracle
package and close
function.Don't forget to close()
the tunnel connection when you're done with oracle.
This is a working example put only your configuration and run example.js
const Oracle = require("oracle-ssh");
const oracledb = require("oracledb");
async function init() {
let connection;
try {
connection = await Oracle.connect(
{
host: '', // Your server host name
port: 22, // Your server ssh port as default in ssh is 22
user: '', // Your server username
password: '' // Your server password
},
{
host: "127.0.0.1", // Your database host in server as default is localhost
port: 1521, // Your database port in server as default is 1521
user: "", // Your database user
password: "", // Your database password
database: "" // Your database name
}
);
// Now the pool is running, it can be used
const sql = `SELECT sysdate FROM dual WHERE :b = 1`;
const binds = [1];
const options = {outFormat: oracledb.OUT_FORMAT_OBJECT};
const result = await connection.client.execute(sql, binds, options);
console.log(result);
} catch (err) {
console.error(err);
} finally {
if (connection) {
try {
await connection.close();
} catch (err) {
throw err;
}
}
}
}
// Call function
init();
FAQs
Connect to oracle database using ssh tunnel
The npm package oracle-ssh receives a total of 9 weekly downloads. As such, oracle-ssh popularity was classified as not popular.
We found that oracle-ssh 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.