File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13915,6 +13915,13 @@ an [`options`](#consubscribeoptions) object that controls notification. In
13915
13915
particular `options` contains a valid SQL query and a JavaScript callback:
13916
13916
13917
13917
```javascript
13918
+ const connection = await oracledb.getConnection({
13919
+ user : "hr",
13920
+ password : mypw, // mypw contains the hr schema password
13921
+ connectString : "localhost/XEPDB1",
13922
+ events : true
13923
+ });
13924
+
13918
13925
function myCallback(message) {
13919
13926
console.log(message);
13920
13927
}
@@ -14041,7 +14048,7 @@ try {
14041
14048
user : "hr",
14042
14049
password : mypw, // mypw contains the hr schema password
14043
14050
connectString : "localhost/XEPDB1",
14044
- events : true
14051
+ events : true
14045
14052
});
14046
14053
14047
14054
await connection.subscribe('mysub', options);
You can’t perform that action at this time.
0 commit comments