lupdo
Version:
Database Abstraction Layer for Node js
17 lines (16 loc) • 475 B
JavaScript
export class BaseTypedBinding {
constructor(type, value, options) {
this.type = type;
this.value = value;
this.options = options;
}
toString() {
let options = '';
try {
options = this.options ? ', ' + JSON.stringify(this.options) : '';
}
catch (error) { }
return `${this.type}(${this.value === null ? 'null' : this.value.toString()}${options})`;
}
}
export default BaseTypedBinding;