UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

36 lines 875 B
import path from "upath"; import { FileSystemInstruction } from "../FileSystem/FileSystemInstruction.js"; const { join } = path; /** * Represents an instruction which executes sql-code. */ export class SQLInstruction extends FileSystemInstruction { /** * Initializes a new instance of the {@link SQLInstruction `SQLInstruction`} class. * * @param options * The options of the sql-instruction. */ constructor(options) { super(options); } /** * @inheritdoc */ get Type() { return "sql"; } /** * @inheritdoc * * @param source * The source of the instruction. * * @returns * The default filename. */ MakeDefaultFileName(source) { return join("scripts", "sql", super.MakeDefaultFileName(source)); } } //# sourceMappingURL=SQLInstruction.js.map