// noop shim — replaces modules not needed in CF Workers
export const createNamespace = (_name?: any) => ({
  bind: (fn: any) => fn,
  run: (fn: any) => fn(),
  get: () => undefined,
  set: () => {},
  createContext: () => ({}),
  enter: () => {},
  exit: () => {},
  active: null,
});
export const getNamespace = () => null;
export const destroyNamespace = () => {};
export class Client {
  constructor(..._args: any[]) {}
  connect() {
    return Promise.resolve();
  }
  query() {
    return Promise.resolve({ rows: [] });
  }
  end() {
    return Promise.resolve();
  }
}
export default { createNamespace, getNamespace, destroyNamespace, Client };
