UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

9 lines (7 loc) 261 B
import { SqlQuery } from './SqlQuery'; import { ifGet } from '../types/Get'; export class Delete extends SqlQuery { toString(): string { return `DELETE FROM ${this.table}` + ifGet(this.clauses.length, ` WHERE ${this.clauses.join(' AND ')};`, ';'); } }