UNPKG

@bhagat-surya-dev/dashchat-database-manager

Version:

AI-powered database schema analysis and management library

36 lines 1.43 kB
import { BaseDatabaseHandler } from './base-handler'; import { FormattedSchema } from './type'; /** * A specialized handler for Supabase PostgreSQL databases * This class handles the specific connection requirements and URL formats used by Supabase */ export declare class SupabaseHandler extends BaseDatabaseHandler { getDatabaseType(): string; /** * Check if a URL is a Supabase URL based on hostname patterns * @param databaseUrl The database URL to check * @returns boolean indicating if the URL is a Supabase URL */ static isSupabaseUrl(databaseUrl: string): boolean; /** * Fix common issues with Supabase URL formats * @param databaseUrl The database URL to fix * @returns The corrected database URL */ static fixSupabaseUrl(databaseUrl: string): string; /** * Test if connection to Supabase is valid * Uses postgres.js for better compatibility with Supabase */ testConnectionWithDetails(databaseUrl: string): Promise<{ success: boolean; error?: string; }>; testConnection(databaseUrl: string): Promise<boolean>; /** * Get schema information from Supabase database * Uses postgres.js for better compatibility with Supabase */ getSchemaInfo(databaseUrl: string): Promise<FormattedSchema>; } export declare const supabaseHandler: SupabaseHandler; //# sourceMappingURL=supabase-handler.d.ts.map