Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavelsjo/autonomous-db
Oracle Autonomous Data Base for NodeJs developers (unoficcial)
https://github.com/pavelsjo/autonomous-db
Last synced: about 2 months ago
JSON representation
Oracle Autonomous Data Base for NodeJs developers (unoficcial)
- Host: GitHub
- URL: https://github.com/pavelsjo/autonomous-db
- Owner: pavelsjo
- License: apache-2.0
- Created: 2021-11-02T00:55:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-08T00:15:50.000Z (about 3 years ago)
- Last Synced: 2024-10-06T08:45:34.441Z (3 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autonomous Data Base (experimental) (unoficcial)
This repository contains the npm package's to work with Oracle Autonomous Data Base for NodeJs developers (unoficcial) name [autonomous-db](https://www.npmjs.com/package/autonomous-db).
## Setup
First you need install [Node](https://nodejs.org/en/) and the [autonomous-db](https://www.npmjs.com/package/autonomous-db) package:
```shell
npm install autonomous-db
```The config's values come from your `Autonomous Data Warehouse (ADW) / Autonomous Transaction Procesing (ATP)`, look for [Oracle Rest Data Services (ORDS) URL](https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/ords-access.html), finally, this user must to have ORDS permissions too.
## Example
```javascript
const adb = require('autonomous-db');const config = {
ordsUrl : "https://.adb..oraclecloudapps.com/ords/",
user : "user",
password : "password",
};const db = new adb.AutonomousDataBase(config);
db.query("SELECT sysdate FROM dual")
.then(data => console.log(data))
.catch(err => console.log(err));
```## References
- ORDS
- OML
- SODA
- [Use Oracle Database Actions with SODA](https://docs.oracle.com/en/cloud/paas/autonomous-json-database/ajdug/use-oracle-database-actions-soda.html)
- [A Supported SQL*Plus and SQLcl Commands](https://docs.oracle.com/en/database/oracle/sql-developer-web/sdwad/supported-commands.html#GUID-397F6B3F-9EA7-4BF6-A446-E4EFB2A7DA7F)
- JSON
- [Oracle SQL Function JSON_SERIALIZE](https://docs.oracle.com/en/database/oracle/oracle-database/19/adjsn/oracle-sql-function-json_serialize.html#GUID-667D37FF-F5FB-465D-B8AE-DAE88F191B2F)
- [JSON_ARRAY SQL/JSON Function](https://docs.oracle.com/en/database/oracle/oracle-database/12.2/adjsn/generation.html#GUID-F942D202-E4BB-4ED8-997E-AEBD6D8ED8C1)