networks defines the networks that service containers are attached to, referencing entries under the top-level networks key.
export const fetchAllProducts = async (categoryId, brandId, page, limit= 5) => {
const {data} = await guestInstance.get('/product', {params: {
categoryId, brandId, page, limit
}})
console.log(data);
return data
}
export const fetchAllProducts = async (categoryId, brandId, page, limit= 5) => {
const {data} = await guestInstance.get('/product', {
categoryId, brandId, page, limit
})
console.log(data);
return data
}
export const fetchBrands = async () => {
const {data} = await guestInstance.get('brand/')
console.log(data);
return data
}
"devDependencies": {
"@types/node": "^17.0.23",
"tslint": "^6.1.3",
"typescript": "^4.6.3"
}
dship=# \sf upd_user
CREATE OR REPLACE PROCEDURE public.upd_user(OUT p_result text, IN p_json json)
LANGUAGE plpgsql
AS $procedure$
DECLARE
l_user_key TEXT := p_json ->> 'userKey';
l_email TEXT := p_json ->> 'email';
BEGIN
IF l_email IS NOT NULL THEN
UPDATE public.USER
SET email = l_email
WHERE id = l_user_key
RETURNING email INTO p_result;
END IF;
END;
$procedure$
You must call the releaseCallback or client.release (which points to the releaseCallback) when you are finished with a client. If you forget to release the client then your application will quickly exhaust available, idle clients in the pool and all further calls to pool.connect will timeout with an error or hang indefinitely if you have connectionTimeoutMillis configured to 0.