mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-28 08:08:02 +00:00
14 lines
331 B
TypeScript
14 lines
331 B
TypeScript
import type { DatabaseType } from "@/types/database";
|
|
import * as api from "@/lib/api";
|
|
|
|
export type BuildViewDdlInput = {
|
|
databaseType?: DatabaseType;
|
|
schema?: string | null;
|
|
name: string;
|
|
source: string;
|
|
};
|
|
|
|
export function buildViewDdl(input: BuildViewDdlInput): Promise<string> {
|
|
return api.buildViewDdlSql(input);
|
|
}
|