TARS
08/01/2022, 12:42 PMReact noob
08/01/2022, 1:17 PMYelloJello
08/01/2022, 1:36 PMpostgres
user not have read access to the graphql._type
table? This would for example prevent a user from dumping the entire database. Should users not dump that schema? Also, the weird bit is that only one of my several databases have the graphql
and graphql_public
schemas. The tables in these schemas are populated too. I'm pretty sure I did not enable any GraphQL related features in that database.
Also, I'm aware I could just give the role access to that table, just wondering how GraphQL got into my database, and why a superuser role doesn't have access to itJosé Peña
08/01/2022, 3:40 PMSun, Jul 31 2022 1:46:26 am | [POP] 2022/07/31 07:46:26 info - 0.0582 seconds
Sun, Jul 31 2022 1:46:26 am | time="2022-07-31T07:46:26Z" level=fatal msg="running db migrations: Migrator: problem creating schema migrations: CREATE TABLE \"schema_migrations\" (\n\"version\" VARCHAR (14) NOT NULL\n);\nCREATE UNIQUE INDEX \"schema_migrations_version_idx\" ON \"schema_migrations\" (version);: ERROR: no schema has been selected to create in (SQLSTATE 3F000)"
Any suggestion?eyk
08/01/2022, 3:45 PMjgoux
08/01/2022, 4:20 PMkevindmoore
08/01/2022, 5:07 PMNeedle
08/01/2022, 5:40 PMkrum
08/01/2022, 5:45 PMpedrodiaz
08/01/2022, 6:26 PM3.0
to 3
in a float8
field?bh
08/01/2022, 10:18 PMNeedle
08/02/2022, 12:06 AMkasvith
08/02/2022, 7:26 AMTaofiq
08/02/2022, 11:06 AMMister Slyther
08/02/2022, 2:01 PMazel
08/02/2022, 2:02 PMdrewbie
08/02/2022, 2:30 PMsupabase db reset
but with an actual Supabase account, not just a local database.
I'd love to hear how any of you have handled a staging environment for your apps!Embm
08/02/2022, 3:01 PM.rpc(...)
, is this feasible in a different way (without defining types manually)?forslunds
08/02/2022, 3:05 PMred
08/02/2022, 4:28 PMTARS
08/02/2022, 4:42 PMconst [result, reexecute] = useRealtime('housingrequests');
const { data: housingrequests, error, fetching } = result;
mrwinbush
08/02/2022, 7:05 PMTARS
08/02/2022, 7:08 PMconst { data: hosts, error, fetching } = supabase.from('hosts').select('*').eq('city', request.city);
NoelsCodes
08/02/2022, 7:37 PMKubessandra
08/02/2022, 7:41 PMpsql -h db.tizfyfxzgjewdjshnhan.supabase.co -p 5432 -d postgres -U postgres
Here is the error with psql you can try, this is a dev database.
psql: error: connection to server at "db.tizfyfxzgjewdjshnhan.supabase.co" (18.197.17.237), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
React noob
08/02/2022, 8:31 PMts
import { createContext, useContext, useEffect, useState } from "react";
import supabase from "../../utils/supabase";
const user = supabase.auth.user()
const Context = createContext(null)
export const UserInfos = ({children}:{ children: React.ReactNode }) => {
const [data, setData] = useState()
useEffect(() => {
async function loadProfile() {
const { data } = await supabase.from('profiles').select('*').eq('id', user?.id).single()
setData(data)
}
}, [])
return(
<Context.Provider value={{data}}>
{children}
</Context.Provider>
)
}
export const useUserInfos = () => useContext(Context)`
trying to fetch but it always undefined, it is something i did wrong ?Mister Slyther
08/02/2022, 11:39 PMcryptic
08/03/2022, 12:06 AMError: Command was killed with SIGSEGV (Segmentation fault): node --require esbuild-register prisma/seed.ts
if I connect to a local postgres db, it works fine. Any ideas?jaitaiwan
08/03/2022, 12:20 AMNoelsCodes
08/03/2022, 12:21 AM