UNPKG

@compas/store

Version:

Postgres & S3-compatible wrappers for common things

23 lines (20 loc) 580 B
import { queries as storeQueries } from "./generated/common/database.js"; /** * @type {typeof storeQueries} */ export let queries = storeQueries; /** * Overwrite used generated queries. * This is needed when you want cascading soft deletes to any of the exposed types. * It is mandatory to be called if 'files', 'session' or 'jobs' are used. If you don't * use the generators, you can use * `storeQueries` as exported by `@compas/store`. * * @since 0.1.0 * * @param {typeof storeQueries} q * @returns {void} */ export function setStoreQueries(q) { queries = q; }