import type { DatabaseObjectType, DatabaseType } from "@/types/database"; import * as api from "@/lib/api"; export interface DropObjectSqlOptions { databaseType?: DatabaseType; objectType: DatabaseObjectType; schema?: string | null; name: string; } export interface TableAdminSqlOptions { databaseType?: DatabaseType; schema?: string | null; tableName: string; } export interface DatabaseNameSqlOptions { databaseType?: DatabaseType; name: string; } export interface SchemaNameSqlOptions { databaseType?: DatabaseType; name: string; } export interface DuplicateTableStructureSqlOptions { databaseType?: DatabaseType; schema?: string | null; sourceName: string; targetName: string; } export function buildDropObjectSql(options: DropObjectSqlOptions): Promise { return api.buildDropObjectSql(options); } export function buildDropTableSql(options: TableAdminSqlOptions): Promise { return api.buildDropTableSql(options); } export function buildEmptyTableSql(options: TableAdminSqlOptions): Promise { return api.buildEmptyTableSql(options); } export function buildTruncateTableSql(options: TableAdminSqlOptions): Promise { return api.buildTruncateTableSql(options); } export function buildDropDatabaseSql(options: DatabaseNameSqlOptions): Promise { return api.buildDropDatabaseSql(options); } export function buildCreateSchemaSql(options: SchemaNameSqlOptions): Promise { return api.buildCreateSchemaSql(options); } export function buildDropSchemaSql(options: SchemaNameSqlOptions): Promise { return api.buildDropSchemaSql(options); } export function buildDuplicateTableStructureSql(options: DuplicateTableStructureSqlOptions): Promise { return api.buildDuplicateTableStructureSql(options); }