Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charlesread/oracledb-clob2string

An example for how to easily make the result set of an oracledb (node) execution that contains LOBs contain strings instead of LOBs
https://github.com/charlesread/oracledb-clob2string

Last synced: about 2 months ago
JSON representation

An example for how to easily make the result set of an oracledb (node) execution that contains LOBs contain strings instead of LOBs

Awesome Lists containing this project

README

        

You know what pisses me off? Dealing with LOBs from the `oracledb` Node.js package.

_Makes use of the `co` package to make stuff wait on other stuff, so if you don't know about generators and promises check this [https://davidwalsh.name/async-generators] out first._

So here's an example of how to "stringify them". In effect, if a SQL result contains a LOB, let's convert it to a string and output the exact same result set, you know, except for the LOB being a string and all.