Skip to main content
Advice
2 votes
2 replies
65 views

I'm building the backend for a platform that works similarly to a game. It includes a simple character customization system with a few properties that aren't particularly relevant to the product (...
JulesMG's user avatar
  • 248
2 votes
1 answer
72 views

We use Postgres jsonb_agg function in criteria query API like this: cb.function( JSONB_AGG_FUNCTION_NAME, JsonNode.class, someJoin.get(someField) ...
Роман Григорьев's user avatar
1 vote
3 answers
108 views

Assume I have many rows with jsonb data like this in their respective columns: { ..., "participants": { "one_uuid": { "id": "another_uuid", &...
mrivera's user avatar
  • 21
2 votes
2 answers
111 views

I have a table with data on user applications. It contains several fields: employee_id text, date date, app_info jsonb. +-------------+------------+------------+ | employee_id | date | app_info ...
Татьяна Задорожняя's user avatar
-2 votes
2 answers
125 views

Is there an operator that extracts xx from '{"xx":123}'::jsonb? In my data I always have only one key, so something like #>>'{$.*}' that meets this requirement, perhaps exists. PS: ...
Peter Krauss's user avatar
  • 14.1k
1 vote
2 answers
338 views

I'm new to python and just came to a problem: i've set up a simple program to fetch some data from PostgreSQL database. They say that asyncpg library automatically converts JSONB data to Python ...
CoderFF's user avatar
  • 310
0 votes
0 answers
71 views

I'm an experienced programmer (mainly c# and mysql, then moved to javascript/JQuery and now more recently nextjs), but new to nextjs and postgres. I'm trying to insert an object into a JSONB column, ...
VMeldrew's user avatar
0 votes
0 answers
95 views

I'm working on a React Native app with Supabase as my backend. My products table has a style_tags column in JSONB array format, for example: [ { "tag": "streetwear", "weight&...
user29888271's user avatar
1 vote
1 answer
51 views

I have this query: SELECT organisation_id, count((j->>'invoiceId')) AS count, sum((j->>'advanceAmount')::numeric(20,4)) AS sum FROM runs LEFT JOIN jsonb_array_elements(...
Pedro Borges's user avatar
  • 1,791
2 votes
1 answer
69 views

I'm using this package to CRUD in a Postgres database https://github.com/porsager/postgres This is my query - it works fine to remove a index 0 or n... on a JSON array inside a jsonb column: UPDATE ...
flourigh's user avatar
  • 204
2 votes
2 answers
115 views

I'm using this package to CRUD in a Postgres database https://github.com/porsager/postgres This is my query: POSGRES_SQL`UPDATE pedidos SET destinatario = jsonb_set( destinatario, '...
flourigh's user avatar
  • 204
2 votes
2 answers
78 views

I seem to be having issues with the @> operator: CREATE TEMP TABLE test_jsonb (id SERIAL, data jsonb); INSERT INTO test_jsonb (data) VALUES ('[{"role_id": "1", "user_name&...
Borrey's user avatar
  • 83
0 votes
1 answer
58 views

Consider the following table: CREATE TABLE organization_data(data JSONB); And it has the following data: INSERT INTO organization_data (data) VALUES ('[{"department_name": "sales",...
David S's user avatar
  • 14.1k
2 votes
2 answers
99 views

WITH pets AS (SELECT 'Dog' AS mainpet, ' [ { "petSpecies": "Dog", "mainMeal": "Meat" }, { "petSpecies": "Cat", "...
Dhruva Sen Gupta's user avatar
1 vote
1 answer
98 views

I've got a table with the filed string Data { get; set; } of type jsonb: modelBuilder.Entity<LayoutEntity>(b => { b.Property(p => p.Data).IsRequired().HasColumnName("data")....
Hille's user avatar
  • 2,361

15 30 50 per page
1
2 3 4 5
178