soda-angular
Version:
Socrata SODA client for Angular
16 lines (15 loc) • 436 B
JavaScript
export class StartsWith {
constructor(column, value) {
if (!column) {
throw new Error("Column must be provided");
}
if (!value || !value.Value) {
throw new Error("Value must be provided and cannot be empty");
}
this.Column = column;
this.Value = value;
}
toString() {
return `starts_with(${this.Column}, ${this.Value})`;
}
}