@a2lix/schemql
Version:
A lightweight TypeScript library that enhances your SQL workflow by combining raw SQL with targeted type safety and schema validation
1 lines • 638 B
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=function(e){return e.InvalidParams=`INVALID_PARAMS`,e.InvalidResults=`INVALID_RESULTS`,e.UniqueConstraint=`UNIQUE_CONSTRAINT`,e.ForeignkeyConstraint=`FOREIGNKEY_CONSTRAINT`,e.NotnullConstraint=`NOTNULL_CONSTRAINT`,e.CheckConstraint=`CHECK_CONSTRAINT`,e.PrimarykeyConstraint=`PRIMARYKEY_CONSTRAINT`,e.NoResult=`NO_RESULT`,e.Generic=`GENERIC`,e}({});var t=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalError=n,this.isNoResultError=()=>this.code===`NO_RESULT`,this.name=`AdapterError`}};exports.AdapterErrorCode=e,exports.BaseAdapterError=t;