lupdo
Version:
Database Abstraction Layer for Node js
21 lines (20 loc) • 628 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseTypedBinding = void 0;
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})`;
}
}
exports.BaseTypedBinding = BaseTypedBinding;
exports.default = BaseTypedBinding;