skip to Main Content

docker-compose.yml syntax leads to error in runtime

Is there any difference between these two configs: Config 1: ... environment: - POSTGRES_NAME='postgres' - POSTGRES_USER='postgres' - POSTGRES_PASSWORD='postgres' - POSTGRES_PORT='5432' Config 2: ... environment: - POSTGRES_NAME=postgres - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_PORT=5432 Because, when I try to docker-compose up with…

VIEW QUESTION

Postgresql – Prisma is console.logging things out of my control

I have a project that is using postgreSQL and Prisma. I was console.logging something in getServerSideProps(), but I noticed that is prisma is automatically console.logging huge amounts of strings like prisma:query SELECT "public"."TaskChart"."id", "public"."TaskChart"."name", "public"."TaskChart"."dateCreated", "public"."TaskChart"."default", "public"."TaskChart"."owner" FROM "public"."TaskChart" WHERE…

VIEW QUESTION

Postgresql – Rails where method with any created_at

I've got a method like this: def transfers(material, capacity, category, created_at) transfers_range = Transfer.first.created_at..Transfer.last.created_at if created_at.nil? Transfer.where( sender_dispensary_id: id, status: %i[dispatched released returned], capacity: capacity, material: material, created_at: created_at.nil? ? transfers_range : Time.given_month_range(created_at) ).or( Transfer.where( receiver_dispensary_id: id, status: %i[dispatched released…

VIEW QUESTION

postgresql Get weeks of the month from date

I have this postgresql query SELECT pick.min_date, extract('week' from pick.min_date) as week FROM account_invoice inv left join stock_picking pick on inv.origin=pick.name WHERE inv.number ='INV/2022/17359' and the results are min_date | week 2022-08-11 02:01:00 | 32 What I need for the…

VIEW QUESTION
Back To Top
Search