pgsql-test
Version:
pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution
23 lines (22 loc) • 692 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.launchql = launchql;
const core_1 = require("@launchql/core");
const env_1 = require("@launchql/env");
function launchql(cwd, cache = false) {
return {
async seed(ctx) {
const proj = new core_1.LaunchQLPackage(cwd ?? ctx.connect.cwd);
if (!proj.isInModule())
return;
await proj.deploy((0, env_1.getEnvOptions)({
pg: ctx.config,
deployment: {
fast: true,
usePlan: true,
cache
}
}), proj.getModuleName());
}
};
}
;