Registry / database / migrate-cubrid-to-mysql

migrate-cubrid-to-mysql

JSON →
library0.1.0jsnpmunverified

Despite its name, this package actually migrates data from Oracle (not CUBRID) to MySQL. Version 0.1.0 is the only known release, appears unmaintained since 2016. It uses an event-driven API to copy data from Oracle to MySQL row by row via SELECT queries and INSERTs. The library has minimal documentation, no tests, and no support for modern Node.js or TypeScript. It is a niche, likely abandoned tool for one-time migrations from Oracle to MySQL. Not recommended for production use; consider using dedicated ETL tools like Apache NiFi, Pentaho, or database-native migration tools.

npm install migrate-cubrid-to-mysql
INSTALL
IMPORT
SIG · MIGRATE-CUBRID-TO-
M
migrate-cubrid-to-mysql
databasejavascriptv0.1.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.

default
var Mom = require('migrate-cubrid-to-mysql');
import Mom from 'migrate-cubrid-to-mysql';
Package uses CommonJS, no ES module support. The default export is a constructor.
Mom
var Mom = require('migrate-cubrid-to-mysql'); var oMom = new Mom(oracleConfig, mysqlConfig);
var oMom = new require('migrate-cubrid-to-mysql')(oracleConfig, mysqlConfig);
Constructor expects two config objects for Oracle (first) and MySQL (second).
migrateByQuery
oMom.migrateByQuery('SELECT ...', 'tableName', true, callback);
oMom.migrateByQuery('SELECT ...', 'tableName', callback);
Third argument is truncate flag (boolean), fourth is callback. Omitting truncate or callback causes errors.

Connects to Oracle and MySQL, migrates data from a SELECT query into a MySQL table with truncation.

var Mom = require('migrate-cubrid-to-mysql'); var oracleConfig = { sHostname: '127.0.0.1', sUser: 'oracle_user', sPassword: 'oracle_password', nPort: 1527, sDatabase: 'oracle_sid' }; var mysqlConfig = { sHostname: '127.0.0.1', sUser: 'mysql_user', sPassword: 'mysql_password', nPort: 3306, sDatabase: 'mysql_db', bDebug: false }; var oMom = new Mom(oracleConfig, mysqlConfig); oMom.on('connected', function() { oMom.migrateByQuery('SELECT id, name FROM users', 'users', true, function(result) { console.log('Migration done:', result); }); }).on('done', function(result) { console.log('All migrations complete'); process.exit(0); });
Debug
Known issues
breakingPackage name says 'cubrid' but actually connects to Oracle; using it with CUBRID will fail.
fix
Do not use this package for CUBRID migrations; it is designed for Oracle.
affects: >=0.0.0
deprecatedOnly one version (0.1.0) released; no updates since 2016. Unmaintained with known security vulnerabilities in dependencies.
fix
Do not use in production. Use modern migration tools like mysqldump, Oracle SQL Developer, or ETL tools.
affects: >=0.0.0
gotchaThe migrateByQuery third argument (truncate) is required; omitting it will cause an undefined callback error.
fix
Always provide a boolean for truncate and a function for callback: oMom.migrateByQuery(query, table, true, callback)
affects: >=0.0.0
gotchaConfig objects use Hungarian notation (sHostname, nPort, etc.) instead of standard camelCase.
fix
Use exact property names as shown: sHostname, sUser, sPassword, nPort, sDatabase. For MySQL, include bDebug.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'oracledb'
Oracle client libraries (instantclient) not installed or oracledb npm package missing.
fix
Install Oracle Instant Client and run: npm install oracledb
Error: ORA-... or NJS-...
Invalid Oracle connection parameters (host, port, user, password, SID).
fix
Verify Oracle config object: sHostname, sUser, sPassword, nPort, sDatabase (SID). Ensure Oracle is accessible.
TypeError: Cannot read property 'sHostname' of undefined
Mom constructor called with less than two config objects or arguments in wrong order.
fix
Call as: new Mom(oracleConfig, mysqlConfig) with both objects defined.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
mysql2requiredUsed for MySQL connection and query execution
oracledbrequiredUsed for Oracle connection and query execution
Agent activity
5 hits · last 30 days
node
4
Resources
migrate-cubrid-to-mysql — npm install migrate-cubrid-to-mysql · libregistry