Initial commit
This commit is contained in:
27
node_modules/drizzle-orm/query-promise.js
generated
vendored
Normal file
27
node_modules/drizzle-orm/query-promise.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user