/
dimamir
/
undb
Обзор
Документация
Войти
/
dimamir
/
undb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/table/src/specifications/table.specification.ts
25 строк
832 B
nichenqin
feat: create table should clear some data
19 авг 2024, 10:20
19 авг 2024, 10:20
838ee64
Код
Авторство
О чём код?
import { Ok, type Result } from "@undb/domain" import type { TableDo } from "../table.do" import type { ITableSpecVisitor } from "./table-visitor.interface" import { TableComositeSpecification } from "./table.composite-specification" export class DuplicatedTableSpecification extends TableComositeSpecification { constructor( public readonly originalTable: TableDo, public readonly duplicatedTable: TableDo, public readonly includeData: boolean, public readonly isSameSpace: boolean, ) { super() } isSatisfiedBy(t: TableDo): boolean { throw new Error("Method not implemented.") } mutate(t: TableDo): Result<TableDo, string> { throw new Error("Method not implemented.") } accept(v: ITableSpecVisitor): Result<void, string> { v.withDuplicatedTable(this) return Ok(undefined) } }