pgsql-test 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { getEnvOptions } from '@launchql/types';
2
2
  import { LaunchQLProject, deployFast } from '@launchql/migrate';
3
- export function launchql(cwd) {
3
+ export function launchql(cwd, cache = false) {
4
4
  return {
5
5
  async seed(ctx) {
6
6
  const proj = new LaunchQLProject(cwd ?? ctx.connect.cwd);
@@ -13,7 +13,8 @@ export function launchql(cwd) {
13
13
  database: ctx.config.database,
14
14
  dir: proj.modulePath,
15
15
  usePlan: true,
16
- verbose: false
16
+ verbose: false,
17
+ cache
17
18
  });
18
19
  }
19
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-test",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution",
6
6
  "main": "index.js",
@@ -59,13 +59,13 @@
59
59
  "@types/pg-copy-streams": "^1.2.5"
60
60
  },
61
61
  "dependencies": {
62
- "@launchql/migrate": "^2.1.5",
63
- "@launchql/server-utils": "^2.1.3",
64
- "@launchql/types": "^2.1.3",
62
+ "@launchql/migrate": "^2.1.7",
63
+ "@launchql/server-utils": "^2.1.4",
64
+ "@launchql/types": "^2.1.4",
65
65
  "chalk": "^4.1.0",
66
66
  "deepmerge": "^4.3.1",
67
67
  "pg": "^8.16.0",
68
68
  "pg-copy-streams": "^6.0.6"
69
69
  },
70
- "gitHead": "e0e3e91544a255293145e936821f7240ef013b30"
70
+ "gitHead": "4dbc5c03940d1a6645bb9e5c0f5423dcda47a068"
71
71
  }
@@ -1,2 +1,2 @@
1
1
  import { SeedAdapter } from './types';
2
- export declare function launchql(cwd?: string): SeedAdapter;
2
+ export declare function launchql(cwd?: string, cache?: boolean): SeedAdapter;
package/seed/launchql.js CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.launchql = launchql;
4
4
  const types_1 = require("@launchql/types");
5
5
  const migrate_1 = require("@launchql/migrate");
6
- function launchql(cwd) {
6
+ function launchql(cwd, cache = false) {
7
7
  return {
8
8
  async seed(ctx) {
9
9
  const proj = new migrate_1.LaunchQLProject(cwd ?? ctx.connect.cwd);
@@ -16,7 +16,8 @@ function launchql(cwd) {
16
16
  database: ctx.config.database,
17
17
  dir: proj.modulePath,
18
18
  usePlan: true,
19
- verbose: false
19
+ verbose: false,
20
+ cache
20
21
  });
21
22
  }
22
23
  };