mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 02:09:50 -04:00
12 lines
415 B
TypeScript
12 lines
415 B
TypeScript
export type ReplicationDestinationType = 'BigQuery' | 'Analytics Bucket' | 'DuckLake'
|
|
|
|
export const getReplicationDestinationType = (
|
|
config?: Record<string, unknown>
|
|
): ReplicationDestinationType | undefined => {
|
|
if (!config) return undefined
|
|
if ('big_query' in config) return 'BigQuery'
|
|
if ('iceberg' in config) return 'Analytics Bucket'
|
|
if ('ducklake' in config) return 'DuckLake'
|
|
return undefined
|
|
}
|