UNPKG

@freemework/common

Version:

Common library of the Freemework Project.

20 lines (16 loc) 792 B
import { FExecutionContext } from "../execution_context/index.js"; import { FSqlConnectionFactory } from "./f_sql_connection_factory.js"; export interface FSqlConnectionFactoryEmbedded extends FSqlConnectionFactory { /** * Check if a Database exists * @param cancellationToken Cancellation Token allows your to cancel execution process */ isDatabaseExists(executionContext: FExecutionContext): Promise<boolean>; /** * Setup new database * @param cancellationToken Cancellation Token allows your to cancel execution process * @param location URL location to new database * @param initScriptUrl URL location to init SQL script. Currently supported file:// and http(s):// schemas. */ newDatabase(executionContext: FExecutionContext, initScriptUrl?: URL): Promise<void>; }