skip to Main Content

Postgresql – SQL query to read nested JSON object

How to read JSON object matching query params? I want to filter data for video urls which only contains query params from metadata column and replace it by the removing the query params. metadata {"video-url":"xyz.com/video/xy4jnj?pubtool=oembed","provider":"some-video","video-id":"x8cse6q"} {"video-url":"xyz.com/video/x8cse6q?pubtool=oembed","provider":"some-video","video-id":x8cse6q} {"video-url":"xyz.com/video/x8cse6q","provider":"some-video","video-id":"x8cse6q"} select * from…

VIEW QUESTION

setting up a postgresql database

I am getting the error below when I try creating a database. Here is the database.yml: default: &default adapter: postgresql pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> timeout: 5000 development: adapter: postgresql encoding: unicode database: MyDatabase host: localhost pool: 5…

VIEW QUESTION
Back To Top
Search