socialmedia/node_modules/drizzle-orm/query-promise.js
2026-03-03 13:45:56 +05:30

27 lines
579 B
JavaScript

import { entityKind } from "./entity.js";
class QueryPromise {
static [entityKind] = "QueryPromise";
[Symbol.toStringTag] = "QueryPromise";
catch(onRejected) {
return this.then(void 0, onRejected);
}
finally(onFinally) {
return this.then(
(value) => {
onFinally?.();
return value;
},
(reason) => {
onFinally?.();
throw reason;
}
);
}
then(onFulfilled, onRejected) {
return this.execute().then(onFulfilled, onRejected);
}
}
export {
QueryPromise
};
//# sourceMappingURL=query-promise.js.map