MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getForQueryParams

Function getForQueryParams

web/pgadmin/static/js/SchemaView/common.js:80–89  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

78}
79
80export function getForQueryParams(data) {
81 let retData = {...data};
82 Object.keys(retData).forEach((key)=>{
83 let value = retData[key];
84 if(_.isObject(value) || _.isNull(value)) {
85 retData[key] = JSON.stringify(value);
86 }
87 });
88 return retData;
89}
90
91export function prepareData(val, createMode=false) {
92 if(_.isPlainObject(val)) {

Callers 1

getSQLValueFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected