UNPKG

soda-angular

Version:
17 lines (16 loc) 486 B
export class In { constructor(column, values) { if (!column) { throw new Error("Column must be provided"); } if (!values || values.length === 0) { throw new Error("Values must be provided"); } this.Column = column; this.Values = values; } toString() { const valuesList = this.Values.map(v => v.toString()).join(', '); return `${this.Column} in (${valuesList})`; } }