DemosthenesLocke
09/07/2022, 7:35 PMjxyz
09/07/2022, 10:35 PMHamza
09/08/2022, 6:34 AMeqoram
09/08/2022, 9:19 AMDemosthenesLocke
09/08/2022, 4:03 PMHamza
09/08/2022, 4:10 PMDemosthenesLocke
09/08/2022, 4:12 PMHamza
09/08/2022, 4:21 PMmansueli
09/09/2022, 3:52 PMcoldrain
09/11/2022, 11:09 AMn10000k
09/12/2022, 1:20 AMOlyno
09/12/2022, 1:51 AMOberstKlinck
09/12/2022, 2:08 PMold_record
rather than record
as it is with INSERT queries.Julien
09/12/2022, 3:07 PMts
/**
* Error format
*
* {@link https://postgrest.org/en/stable/api.html?highlight=options#errors-and-http-status-codes}
*/
export type PostgrestError = {
message: string
details: string
hint: string
code: string
}
/**
* Response format
*
* {@link https://github.com/supabase/supabase-js/issues/32}
*/
interface PostgrestResponseBase {
status: number
statusText: string
}
interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
error: undefined
data: T[]
count: number | undefined
}
interface PostgrestResponseFailure extends PostgrestResponseBase {
error: PostgrestError
data: undefined
count: undefined
Bloxs
09/12/2022, 8:57 PMsoanyuh
09/14/2022, 3:42 PMOlyno
09/14/2022, 4:17 PMJulien
09/16/2022, 10:39 PMts
export interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
error: undefined
data: T[]
count: number | undefined
}
export interface PostgrestResponseFailure extends PostgrestResponseBase {
error: PostgrestError
data: undefined
count: undefined
}
export interface PostgrestSingleResponseSuccess<T> extends PostgrestResponseBase {
error: undefined
data: T
count: number | undefined
}
export type SupabasePostgresqlResponse = PostgrestResponse<any> | PostgrestSingleResponse<any>
export type SupabaseStorageResponseSuccess = {
data: Blob
error: null
}
export type SupabaseStorageResponseFailure = {
data: null
error: StorageError | StorageApiError | StorageUnknownError
}
That is annoying to deal sometimes with null and sometimes with undefined, it should be only 1 of themO.Little
09/17/2022, 4:13 PMstelofo
09/19/2022, 11:31 AMstelofo
09/19/2022, 11:31 AMstelofo
09/19/2022, 4:18 PMArne
09/19/2022, 5:19 PMMidspectrum
09/20/2022, 5:45 PMOlyno
09/20/2022, 8:45 PMsilencer.xyz
09/21/2022, 7:12 AMkonga
09/22/2022, 1:57 AMgaryaustin
09/22/2022, 2:13 AMFor MySQL, PostgreSQL and CockroachDB you must percentage-encode special characters in any part of your connection URL
remc
09/22/2022, 11:18 AMHallidayo
09/23/2022, 10:56 AM