UNPKG

@a2lix/schemql

Version:

A lightweight TypeScript library that enhances your SQL workflow by combining raw SQL with targeted type safety and schema validation

2 lines (1 loc) 675 B
var S=Object.defineProperty;var R=(N,n)=>S(N,"name",{value:n,configurable:!0});var t=(N=>(N.InvalidParams="INVALID_PARAMS",N.InvalidResults="INVALID_RESULTS",N.UniqueConstraint="UNIQUE_CONSTRAINT",N.ForeignkeyConstraint="FOREIGNKEY_CONSTRAINT",N.NotnullConstraint="NOTNULL_CONSTRAINT",N.CheckConstraint="CHECK_CONSTRAINT",N.PrimarykeyConstraint="PRIMARYKEY_CONSTRAINT",N.NoResult="NO_RESULT",N.Generic="GENERIC",N))(t||{});const s=class s extends Error{constructor(n,I,T){super(n),this.code=I,this.originalError=T,this.isNoResultError=()=>this.code==="NO_RESULT",this.name="AdapterError"}};R(s,"BaseAdapterError");let i=s;export{t as AdapterErrorCode,i as BaseAdapterError};