Comments (2)
Just trying to help:
- In
pg-promise
's README.md, it says
Please note, however, that nested parameters are not supported within the helpers namespace.
- In the docs for the helpers.set method,
data
should be:
A simple, non-null and non-array source object.
If it is anything else, the method will throw TypeError =Invalid parameter 'data' specified.
Based on your explanation,
Note the missing conversion to JSON which means that the resulting array will be a plain TEXT[].
some combination of JSON.stringify() or JSON.parse() and implementing an algorithm for your data array using pgp.helpers.sets
might help you arrive at a solution?
from pg-promise.
Closing the issue, as the OP hasn't provided any response.
from pg-promise.
Related Issues (20)
- Request to update the RobustListener example to use async/await HOT 1
- Add https:// to link in About section HOT 2
- Is it possible to enum and timestamp using pgp.helpers.update? HOT 1
- Error not being thrown when statement cancelled due to timeout HOT 5
- batch is deprecated?
- ColumnSet does not recognize a table with schema HOT 6
- Question: Is it possible to use pg.helpers.ColumnSet to skip updating value based on column's new value
- CI issue HOT 3
- How safe is helpers concat against SQL injections HOT 1
- pg return error HOT 6
- CSV filter not treating Buffer (bytea) correctly HOT 6
- Using Promise.all inside tx() causes inconsistent data state HOT 7
- How can I explain my transaction ? HOT 1
- How can I delete a set of values ? HOT 1
- BUG - JSON and JSONB cast on update helper HOT 3
- json formatting issue on update HOT 5
- High Vulnerability Security Issue HOT 1
- How to connect to serverless redshift using IAM permissions HOT 2
- Cannot read properties of undefined (reading 'split') HOT 1
- how to use tsrange in colum helpers set ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-promise.