Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themost-framework/oracle
MOST Web Framework Oracle Data Adapter
https://github.com/themost-framework/oracle
Last synced: about 6 hours ago
JSON representation
MOST Web Framework Oracle Data Adapter
- Host: GitHub
- URL: https://github.com/themost-framework/oracle
- Owner: themost-framework
- License: bsd-3-clause
- Created: 2021-04-18T20:04:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-21T13:04:34.000Z (10 months ago)
- Last Synced: 2024-03-23T09:30:17.471Z (8 months ago)
- Language: JavaScript
- Size: 167 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @themost/oracle
Most Web Framework Oracle Adapter
## Install```bash
npm install @themost/oracle
```## Usage
Register Oracle data adapter at app.json:
```json
{
"adapterTypes": [
{ "name":"Oracle Data Adapter", "invariantName": "oracle", "type":"@themost/oracle" }
],
adapters: [
{ "name":"development", "invariantName":"oracle", "default":true,
"options": {
"host":"localhost",
"port":1521,
"user":"user",
"password":"password",
"service":"orcl",
"schema":"PUBLIC"
}
}
]
}
```Use `session` options to define Oracle session parameters. For example:
```json
{
"name":"development", "invariantName":"oracle", "default":true,
"options": {
"host":"localhost",
"port":1521,
"user":"user",
"password":"password",
"service":"orcl",
"schema":"PUBLIC",
"session": {
"NLS_COMP": "LINGUISTIC",
"NLS_SORT": "BINARY_CI"
}
}
}
```If you are intended to use Oracle adapter as the default database adapter set the property "default" to true.
Note: Most Web Framework Oracle Adapter depends on [Oracle Database driver for Node.js](https://github.com/oracle/node-oracledb) maintained by Oracle Corp.
Before install it, read the node-oracledb [installation instructions] (https://github.com/oracle/node-oracledb/blob/master/INSTALL.md) provided by Oracle Corp.