const TRANSACTION_KEY = "ctx-key-db-transaction";
export const withTransaction = (ctx, tx) => {
    return Object.assign(Object.assign({}, ctx), { [TRANSACTION_KEY]: tx });
};
export const getTransaction = (ctx) => {
    const l = ctx[TRANSACTION_KEY];
    if (l == undefined) {
        return undefined;
    }
    return l;
};
//# sourceMappingURL=context.js.map