Skip to content

Commit 16af6c1

Browse files
committed
Mention SYS.ODCIVARCHAR2LIST in doc
1 parent 000174a commit 16af6c1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/api.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14497,6 +14497,19 @@ const binds = { bv: { type: "NAME_ARRAY", val: inlist } };
1449714497
const result = await connection.execute(sql, binds, options);
1449814498
```
1449914499

14500+
You may decide to overload the use of the database `SYS.ODCIVARCHAR2LIST` or
14501+
`SYS.ODCINUMBERLIST` types so you don't need to create a type like
14502+
`name_array`:
14503+
14504+
```javascript
14505+
const binds = { bv: { type: 'SYS.ODCIVARCHAR2LIST', val: inlist } };
14506+
```
14507+
14508+
Since this `TABLE()` solution uses an object type, there is a performance
14509+
impact because of the extra [round-trips](#roundtrips) required to get the type
14510+
information. Unless you have a large number of binds you may prefer one of the
14511+
previous solutions.
14512+
1450014513
Some general references are [On Cursors, SQL, and Analytics][59] and in [this
1450114514
StackOverflow answer][60].
1450214515

0 commit comments

Comments
 (0)