garyaustin
03/03/2022, 12:13 AMDanMossa
03/03/2022, 1:08 AMsignInWithEmail
. I then try getting the user()
and it's null. Does that make sense or should successfully signing in auto set the user?garyaustin
03/03/2022, 1:17 AMDanMossa
03/03/2022, 1:17 AMDanMossa
03/03/2022, 1:19 AMgaryaustin
03/03/2022, 1:24 AMsantiarr
03/03/2022, 4:00 AMramoncarden
03/03/2022, 4:08 AMjs
const Rooms = () => {
const [channel, setChannel] = useState([]);
const gatherAllChatRooms = async () => {
let { data, error } = await supabase.from('channels').select('*');
if (error) {
console.log(error);
}
if (data) {
setChannel(data);
console.log(data);
}
};
useEffect(() => {
gatherAllChatRooms();
}, []);
ramoncarden
03/03/2022, 4:08 AMtirmes
03/03/2022, 4:25 AMtirmes
03/03/2022, 7:00 AMKrisGunnars
03/03/2022, 8:45 AMKrisGunnars
03/03/2022, 8:45 AMMaus
03/03/2022, 8:51 AMinformation_schema.sequences
schema. Anybody got any ideas?
Column definition:
SELECT
table_name,
column_name,
data_type
FROM
information_schema.columns
WHERE
table_name = 'booking' AND column_name = 'sequential_id';
>
| table_catalog | table_schema | table_name | column_name | column_default | is_nullable | data_type | is_identity | identity_generation | identity_cycle | is_generated | generation_expression |
| ------------- | ------------ | ---------- | ------------- | -------------- | ----------- | --------- | ----------- | ------------------- | -------------- | ------------ | --------------------- |
| postgres | public | booking | sequential_id | | NO | integer | YES | ALWAYS | NO | NEVER | |
`information_schema.sequences`:
SELECT * FROM information_schema.sequences WHERE sequence_schema = 'public';
> Success. No rows returned
SELECT currval(pg_get_serial_sequence('booking','sequential_id'));
> currval of sequence "Booking_sequential_id_seq" is not yet defined in this session
and3rsonsousa
03/03/2022, 12:45 PMand3rsonsousa
03/03/2022, 2:35 PMKazuto
03/03/2022, 2:38 PM.select('*, user:users(email)')
and .select('*, user:auth(email)')
already. user_id uuid references auth.users(id) NOT NULL
xavier
03/03/2022, 3:07 PMAdi
03/03/2022, 3:49 PMgaryaustin
03/03/2022, 3:54 PMthewebbeckons
03/03/2022, 4:09 PMTomasz Szczuciński
03/03/2022, 5:31 PMScott P
03/03/2022, 5:38 PMIF (LENGTH(new.post_title) > 128) THEN RETURN FALSE;
You can use postgres functions as RLS policies if necessary, and sometimes it's easier to manage the logic this way than cramming everything into the policy definitiongaryaustin
03/03/2022, 5:47 PMTomasz Szczuciński
03/03/2022, 5:52 PMMachine
03/03/2022, 6:38 PMarne
03/03/2022, 6:42 PMasleepingpanda
03/03/2022, 7:31 PMMODDATETIME
and INSERT_USERNAME
extensions, but I have NO idea how to use them. Am I missing something? Is there documentation anywhere?lopezjurip
03/03/2022, 7:46 PMgaryaustin
03/03/2022, 8:02 PM