jJ
06/25/2022, 12:34 PMHaus Of Alejandro
06/25/2022, 2:18 PM! Do you even Vim, bro?
06/27/2022, 11:03 AMJulien
06/27/2022, 12:09 PMgaryaustin
06/27/2022, 1:57 PMLothar
06/27/2022, 6:57 PMSELECT * FROM "recipe-vessels" WHERE "recipeId" = 9 AND "token" IN ('iD95euC3k5Yujjke5RiCnmxryvSjwLfVXRn7vgUF5kb','GWNyy4QANs7ABsFWi9EmxE35xqyFmd8WumW3Sw1zMZsu','7j8GTVndHzUChCnQ38fEgioJVs6bV3nEg7GtDrbbTyy9','2bLNqfUNAKEKjWSARBrSWzURGDMnZSDfSPBMshjnBvX3','AtBqAd2FLjZx4n7Fc6XGKuaqKixVZtYZT6yVKGYPPgyW','CGjvdsMqg9awSN5bawjPvZxTce1dZo2qyq2h59foXG6h','5dkCnu3hv4ML48as2ws5jnsa1G8EU6GSMsm1bGLM7zdM','3jEJnSgsRVQDHRTBJNhM8wzXud9bQhJKCNcTneCRaK7X','43PHQvXGfntx9xUodNbKCihMwLgZ73pFqAx1zxSC6VZg','CBA6N5SobR6Ci2bp52Txhp9AhXP8Dt1NSqj9UFLwgRaZ','8BpWmdch8oymicXRuZPu4DqWUYPJxBrQzk9RCFi7T2cs','3QWDsinp9zyFg1mC2RmF9NvvTTpzjLCqUfvYT3sVSbYi','CUpuoS8ZWXE3iqP5mG5LqrNufzScUog25UyNyfSY2crh','4z2kvKU8JYebFqXXcSqGSNLypydoYLrobYuBQMuDzFnw')
Lothar
06/27/2022, 6:57 PMexport async function getVessels(tokens:string[], recipeId:number) {
try {
const user = supabase.auth.user()
let { data, error, status } = await supabase
.from('recipe-vessels')
.select(`*`)
.eq('recipeId',recipeId)
.in('token',tokens)
if (error && status !== 406) {
throw error
}
return data
} catch (error) {
throw(error)
}
}
Lothar
06/27/2022, 6:59 PMLothar
06/27/2022, 6:59 PMomar
06/27/2022, 7:25 PMomar
06/28/2022, 8:08 AMomar
06/28/2022, 9:38 AMbaptisteArno
06/28/2022, 9:47 AMsql
begin;
explain (analyze,buffers,timing)
SELECT "public"."Typebot"."id",
"public"."Typebot"."workspaceId"
FROM "public"."Typebot"
WHERE ("public"."Typebot"."id") NOT IN (
SELECT "t0"."id"
FROM "public"."Typebot" AS "t0"
INNER JOIN "public"."Result" AS "j0" ON ("j0"."typebotId") = ("t0"."id")
WHERE (
(
NOT (
"j0"."createdAt" >= '2022-05-31 22:00:00 UTC'
AND "j0"."createdAt" <= '2022-06-29 22:00:00 UTC'
)
)
AND "t0"."id" IS NOT NULL
)
)
ORDER BY "public"."Typebot"."id" ASC
LIMIT 100 OFFSET 0;
rollback;
Here is the output: https://gist.github.com/baptisteArno/19f3939a428ec0ee25a64611345a6002
I'm not sure how to interpret this? 😦MagnusDenStore
06/29/2022, 9:49 PMThePhilip
07/02/2022, 1:33 AMpsql -h (db url) -p 5432 -d postgres -U postgres
based off the template and getting psql: error: connection to server at "db url" (3.88.4.237), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
Same thing with pg adminjaitaiwan
07/02/2022, 10:32 AMBicijay
07/03/2022, 12:04 AMALTER TABLE IF EXISTS public.stripe_products
OWNER to postgres;
Salvage_Dev
07/03/2022, 9:04 AMNiclas
07/03/2022, 12:22 PMNiclas
07/03/2022, 12:22 PMNiclas
07/03/2022, 12:23 PMn:n
between a User
and Team
(so one user can be in multiple teams and one team has multiple users) and I attached a Role
field to that n:n
table to store if it is a user or a trainerNiclas
07/03/2022, 12:24 PMDepartment
entity in the mix without making the whole schema too confusingNiclas
07/03/2022, 12:24 PMgaryaustin
07/03/2022, 2:06 PMjar
07/03/2022, 6:46 PMselect regr_slope((val->>'val')::numeric,(val->>'open_time')::numeric) from jsonb_array_elements('[
{ "open_time": 161, "val": 15 },
{ "open_time": 162, "val": 9 },
{ "open_time": 163, "val": 12 },
{ "open_time": 164, "val": 7 },
{ "open_time": 165, "val": 6 },
{ "open_time": 166, "val": 9 },
{ "open_time": 167, "val": 8 }
]') as val;
jaitaiwan
07/04/2022, 1:50 AMPeanut
07/04/2022, 7:55 AMPeanut
07/04/2022, 7:56 AMThePhilip
07/04/2022, 2:17 PM