Skip to content

mankey-ru/node-sqlplus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[BETA] node-sqlplus

A simple wrapper for Oracle SQL*Plus v.12.2+

Since the original node-oracledb is quite an overkill solution for simple projects* I made this simple wrapper for simple needs like fetching data.

The only prerequisite is Oracle Instant CLient with SQL*Plus v.12.2+ That's how to install it: first, select your platform Then, on the next page you need to download two packages

  • Instant Client Package - Basic
  • Instant Client Package - SQL*Plus

Then unpack both archives content together into one dir. Then create subdirs /network/admin and put there your tnsnames.ors file. Windows users should then add this dir to PATH system variable

* - i.e. Windows users have to install MS Visual Studio in order to get oracledb work

Usage

var sql = `select * from mytable`;
var connProps = 'myScheme/mySchemePassword@myTnsName';
sqlplus(sql, connProps, function(err, rows){
	if (err) {
		console.log(err)
	}
	else {
		console.log(rows)
	}
});

About

A simple wrapper for Oracle SQL*Plus v.12.2+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published