@etohq/search 2.0.4 → 2.0.6
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.
- package/NOTICE +24 -0
- package/README.md +189 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -17
- package/dist/index.js.map +1 -1
- package/dist/joiner-config.d.ts +8 -0
- package/dist/joiner-config.d.ts.map +1 -0
- package/dist/joiner-config.js +12 -0
- package/dist/joiner-config.js.map +1 -0
- package/dist/loaders/providers.d.ts +2 -15
- package/dist/loaders/providers.d.ts.map +1 -1
- package/dist/loaders/providers.js +14 -37
- package/dist/loaders/providers.js.map +1 -1
- package/dist/migrations/Migration20260805085626.d.ts +6 -0
- package/dist/migrations/Migration20260805085626.d.ts.map +1 -0
- package/dist/migrations/Migration20260805085626.js +23 -0
- package/dist/migrations/Migration20260805085626.js.map +1 -0
- package/dist/migrations/Migration20260903085616.d.ts +6 -0
- package/dist/migrations/Migration20260903085616.d.ts.map +1 -0
- package/dist/migrations/Migration20260903085616.js +32 -0
- package/dist/migrations/Migration20260903085616.js.map +1 -0
- package/dist/migrations/Migration20260911115931.d.ts +6 -0
- package/dist/migrations/Migration20260911115931.d.ts.map +1 -0
- package/dist/migrations/Migration20260911115931.js +14 -0
- package/dist/migrations/Migration20260911115931.js.map +1 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +10 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/search-index-sync.d.ts +34 -0
- package/dist/models/search-index-sync.d.ts.map +1 -0
- package/dist/models/search-index-sync.js +47 -0
- package/dist/models/search-index-sync.js.map +1 -0
- package/dist/models/search-index-version.d.ts +34 -0
- package/dist/models/search-index-version.d.ts.map +1 -0
- package/dist/models/search-index-version.js +37 -0
- package/dist/models/search-index-version.js.map +1 -0
- package/dist/models/search-index.d.ts +28 -0
- package/dist/models/search-index.d.ts.map +1 -0
- package/dist/models/search-index.js +28 -0
- package/dist/models/search-index.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +3 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/search-module-service.d.ts +67 -15
- package/dist/services/search-module-service.d.ts.map +1 -1
- package/dist/services/search-module-service.js +328 -12
- package/dist/services/search-module-service.js.map +1 -1
- package/dist/services/search-provider.d.ts +23 -0
- package/dist/services/search-provider.d.ts.map +1 -0
- package/dist/services/search-provider.js +64 -0
- package/dist/services/search-provider.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +129 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/active-version-cache.d.ts +36 -0
- package/dist/utils/active-version-cache.d.ts.map +1 -0
- package/dist/utils/active-version-cache.js +73 -0
- package/dist/utils/active-version-cache.js.map +1 -0
- package/dist/utils/deletion.d.ts +11 -0
- package/dist/utils/deletion.d.ts.map +1 -0
- package/dist/utils/deletion.js +50 -0
- package/dist/utils/deletion.js.map +1 -0
- package/dist/utils/index.d.ts +88 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +524 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/ingestion.d.ts +12 -0
- package/dist/utils/ingestion.d.ts.map +1 -0
- package/dist/utils/ingestion.js +78 -0
- package/dist/utils/ingestion.js.map +1 -0
- package/dist/utils/migrations.d.ts +5 -0
- package/dist/utils/migrations.d.ts.map +1 -0
- package/dist/utils/migrations.js +143 -0
- package/dist/utils/migrations.js.map +1 -0
- package/dist/utils/rate-limit.d.ts +9 -0
- package/dist/utils/rate-limit.d.ts.map +1 -0
- package/dist/utils/rate-limit.js +47 -0
- package/dist/utils/rate-limit.js.map +1 -0
- package/dist/utils/seeding.d.ts +29 -0
- package/dist/utils/seeding.d.ts.map +1 -0
- package/dist/utils/seeding.js +639 -0
- package/dist/utils/seeding.js.map +1 -0
- package/dist/utils/versions.d.ts +50 -0
- package/dist/utils/versions.d.ts.map +1 -0
- package/dist/utils/versions.js +113 -0
- package/dist/utils/versions.js.map +1 -0
- package/package.json +9 -15
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { SearchTypes } from "@etohq/framework/types";
|
|
2
|
+
import { SearchIndexRecord, SearchIndexRegistry } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* The physical index a version is built under. Every version — including the
|
|
5
|
+
* first — gets one, so `definition.physical_name` is never itself a physical
|
|
6
|
+
* index: it is only virtual index name
|
|
7
|
+
*/
|
|
8
|
+
export declare function versionPhysicalName(definition: SearchTypes.ResolvedSearchIndexDefinition, version: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* Drops every version below the one currently serving reads — the physical
|
|
11
|
+
* index in the engine and the record pointing at it. Runs before a migration
|
|
12
|
+
* or a reindex builds a new version, so versions earlier builds left behind
|
|
13
|
+
* don't pile up: building v6 while v5 serves reads leaves v5 and v6 standing
|
|
14
|
+
* and takes everything under them.
|
|
15
|
+
*
|
|
16
|
+
* The version that was active until the last swap is deliberately kept: another
|
|
17
|
+
* process can still be serving reads off it until its active-version cache
|
|
18
|
+
* catches up, so it only goes once the next build starts.
|
|
19
|
+
*/
|
|
20
|
+
export declare function cleanupStaleVersions(context: Pick<SearchIndexRegistry, "providers" | "versionService" | "logger">, record: SearchIndexRecord): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Drops every version above the active one that a run already started filling
|
|
23
|
+
* and never swapped in. Runs once a reindex has created the version it builds,
|
|
24
|
+
* which the startup seed then prefers, so nothing would ever resume these.
|
|
25
|
+
*
|
|
26
|
+
* Callers must hold the index's seed lock: it is what guarantees no other
|
|
27
|
+
* process is still filling one of them. A version nothing started filling yet
|
|
28
|
+
* is left alone, since it may be a migration's, waiting for its first seed.
|
|
29
|
+
*/
|
|
30
|
+
export declare function cleanupAbandonedVersions(context: Pick<SearchIndexRegistry, "providers" | "versionService" | "logger">, record: SearchIndexRecord): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Drops what a swap to `activeVersion` left behind: every version below it
|
|
33
|
+
* except `previousVersion`, which other processes may still read from until
|
|
34
|
+
* their active-version cache catches up. Nothing ever makes a version below
|
|
35
|
+
* the active one active again, so without this they wait for the next build.
|
|
36
|
+
*
|
|
37
|
+
* Callers must hold the index's seed lock. Never throws: the swap it follows
|
|
38
|
+
* has already happened, and failing to drop a stale index must not undo it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function cleanupAfterSwap(context: Pick<SearchIndexRegistry, "providers" | "versionService" | "logger">, { record_id, active_version: activeVersion, previous_version: previousVersion, }: {
|
|
41
|
+
record_id: string;
|
|
42
|
+
active_version: number;
|
|
43
|
+
previous_version: number | null;
|
|
44
|
+
}): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Removes a logical index outright: every physical index ever built for it,
|
|
47
|
+
* then the record tracking them.
|
|
48
|
+
*/
|
|
49
|
+
export declare function dropIndex(context: Pick<SearchIndexRegistry, "providers" | "indexService" | "versionService" | "logger">, name: string): Promise<void>;
|
|
50
|
+
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/utils/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAEpB,MAAM,QAAQ,CAAA;AAGf;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,WAAW,CAAC,6BAA6B,EACrD,OAAO,EAAE,MAAM,GACd,MAAM,CAER;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,gBAAgB,GAAG,QAAQ,CAAC,EAC7E,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAgBf;AAED;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,gBAAgB,GAAG,QAAQ,CAAC,EAC7E,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAiBf;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,GAAG,gBAAgB,GAAG,QAAQ,CAAC,EAC7E,EACE,SAAS,EACT,cAAc,EAAE,aAAa,EAC7B,gBAAgB,EAAE,eAAe,GAClC,EAAE;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,MAAM,CAAA;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC,GACA,OAAO,CAAC,IAAI,CAAC,CAmBf;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE,IAAI,CACX,mBAAmB,EACnB,WAAW,GAAG,cAAc,GAAG,gBAAgB,GAAG,QAAQ,CAC3D,EACD,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAwBf"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.versionPhysicalName = versionPhysicalName;
|
|
4
|
+
exports.cleanupStaleVersions = cleanupStaleVersions;
|
|
5
|
+
exports.cleanupAbandonedVersions = cleanupAbandonedVersions;
|
|
6
|
+
exports.cleanupAfterSwap = cleanupAfterSwap;
|
|
7
|
+
exports.dropIndex = dropIndex;
|
|
8
|
+
const index_1 = require("./index");
|
|
9
|
+
/**
|
|
10
|
+
* The physical index a version is built under. Every version — including the
|
|
11
|
+
* first — gets one, so `definition.physical_name` is never itself a physical
|
|
12
|
+
* index: it is only virtual index name
|
|
13
|
+
*/
|
|
14
|
+
function versionPhysicalName(definition, version) {
|
|
15
|
+
return `${definition.physical_name}_v${version}`;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Drops every version below the one currently serving reads — the physical
|
|
19
|
+
* index in the engine and the record pointing at it. Runs before a migration
|
|
20
|
+
* or a reindex builds a new version, so versions earlier builds left behind
|
|
21
|
+
* don't pile up: building v6 while v5 serves reads leaves v5 and v6 standing
|
|
22
|
+
* and takes everything under them.
|
|
23
|
+
*
|
|
24
|
+
* The version that was active until the last swap is deliberately kept: another
|
|
25
|
+
* process can still be serving reads off it until its active-version cache
|
|
26
|
+
* catches up, so it only goes once the next build starts.
|
|
27
|
+
*/
|
|
28
|
+
async function cleanupStaleVersions(context, record) {
|
|
29
|
+
const activeVersion = record.active_version;
|
|
30
|
+
if (activeVersion == null) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const versions = (await context.versionService.list({ search_index_id: record.id }, { take: null }));
|
|
34
|
+
await deleteVersions(context, versions.filter((version) => version.version < activeVersion));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Drops every version above the active one that a run already started filling
|
|
38
|
+
* and never swapped in. Runs once a reindex has created the version it builds,
|
|
39
|
+
* which the startup seed then prefers, so nothing would ever resume these.
|
|
40
|
+
*
|
|
41
|
+
* Callers must hold the index's seed lock: it is what guarantees no other
|
|
42
|
+
* process is still filling one of them. A version nothing started filling yet
|
|
43
|
+
* is left alone, since it may be a migration's, waiting for its first seed.
|
|
44
|
+
*/
|
|
45
|
+
async function cleanupAbandonedVersions(context, record) {
|
|
46
|
+
const activeVersion = record.active_version ?? 0;
|
|
47
|
+
const versions = (await context.versionService.list({ search_index_id: record.id }, { take: null }));
|
|
48
|
+
await deleteVersions(context, versions.filter((version) => version.version > activeVersion &&
|
|
49
|
+
(version.status === index_1.SearchIndexState.BUILDING ||
|
|
50
|
+
version.status === index_1.SearchIndexState.ERROR)));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Drops what a swap to `activeVersion` left behind: every version below it
|
|
54
|
+
* except `previousVersion`, which other processes may still read from until
|
|
55
|
+
* their active-version cache catches up. Nothing ever makes a version below
|
|
56
|
+
* the active one active again, so without this they wait for the next build.
|
|
57
|
+
*
|
|
58
|
+
* Callers must hold the index's seed lock. Never throws: the swap it follows
|
|
59
|
+
* has already happened, and failing to drop a stale index must not undo it.
|
|
60
|
+
*/
|
|
61
|
+
async function cleanupAfterSwap(context, { record_id, active_version: activeVersion, previous_version: previousVersion, }) {
|
|
62
|
+
try {
|
|
63
|
+
const versions = (await context.versionService.list({ search_index_id: record_id }, { take: null }));
|
|
64
|
+
await deleteVersions(context, versions.filter((version) => version.version < activeVersion && version.version !== previousVersion));
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
context.logger.warn(`[Search] Cannot clean up after swapping in version ${activeVersion}: ${error.message}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Removes a logical index outright: every physical index ever built for it,
|
|
72
|
+
* then the record tracking them.
|
|
73
|
+
*/
|
|
74
|
+
async function dropIndex(context, name) {
|
|
75
|
+
const [record] = (await context.indexService.list({
|
|
76
|
+
name,
|
|
77
|
+
}));
|
|
78
|
+
if (!record) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const versions = (await context.versionService.list({ search_index_id: record.id }, { take: null }));
|
|
82
|
+
const failed = await deleteVersions(context, versions);
|
|
83
|
+
if (failed.length) {
|
|
84
|
+
context.logger.warn(`[Search] Keeping the record for search index "${name}": ${failed.length} of its ${versions.length} version(s) could not be removed, so the next migration plans the drop again`);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
await context.indexService.softDelete([record.id]);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Deletes each version's physical index and then its record. Returns the ones
|
|
91
|
+
* it could not delete: failing to drop a stale index is never worth failing the
|
|
92
|
+
* migration or reindex that triggered it, and the record surviving is what
|
|
93
|
+
* makes the next run retry it.
|
|
94
|
+
*/
|
|
95
|
+
async function deleteVersions(context, versions) {
|
|
96
|
+
const failed = [];
|
|
97
|
+
for (const version of versions) {
|
|
98
|
+
try {
|
|
99
|
+
const provider = context.providers.retrieve(version.provider);
|
|
100
|
+
await provider.deleteIndex({ index: version.physical_name });
|
|
101
|
+
// Soft delete: a hard delete would violate the foreign key from any
|
|
102
|
+
// `SearchIndexSync` row still pointing at this version's append-only
|
|
103
|
+
// history.
|
|
104
|
+
await context.versionService.softDelete([version.id]);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
failed.push(version);
|
|
108
|
+
context.logger.warn(`[Search] Cannot delete search index "${version.physical_name}": ${error.message}`);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return failed;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../src/utils/versions.ts"],"names":[],"mappings":";;AAaA,kDAKC;AAaD,oDAmBC;AAWD,4DAoBC;AAWD,4CA8BC;AAMD,8BA8BC;AAxJD,mCAA0C;AAE1C;;;;GAIG;AACH,SAAgB,mBAAmB,CACjC,UAAqD,EACrD,OAAe;IAEf,OAAO,GAAG,UAAU,CAAC,aAAa,KAAK,OAAO,EAAE,CAAA;AAClD,CAAC;AAED;;;;;;;;;;GAUG;AACI,KAAK,UAAU,oBAAoB,CACxC,OAA6E,EAC7E,MAAyB;IAEzB,MAAM,aAAa,GAAG,MAAM,CAAC,cAAc,CAAA;IAE3C,IAAI,aAAa,IAAI,IAAI,EAAE,CAAC;QAC1B,OAAM;IACR,CAAC;IAED,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,cAAc,CAAC,IAAI,CACjD,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,EAAE,EAC9B,EAAE,IAAI,EAAE,IAAI,EAAE,CACf,CAA+B,CAAA;IAEhC,M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CAAC,aAAa,EAAE,CAAC,CAAA;YAC5D,oEAAoE;YACpE,qEAAqE;YACrE,WAAW;YACX,MAAM,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;QACvD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YACpB,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,wCAAwC,OAAO,CAAC,aAAa,MAAM,KAAK,CAAC,OAAO,EAAE,CACnF,CAAA;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etohq/search",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Eto
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"description": "Eto Search module — index definitions, versioned physical indexes and search providers",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
+
"NOTICE",
|
|
9
10
|
"!dist/**/__tests__",
|
|
10
11
|
"!dist/**/__mocks__",
|
|
11
12
|
"!dist/**/__fixtures__"
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
18
19
|
"url": "https://github.com/etohq/eto",
|
|
19
|
-
"directory": "packages/core/modules/
|
|
20
|
+
"directory": "packages/core/modules/search"
|
|
20
21
|
},
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public"
|
|
@@ -24,13 +25,10 @@
|
|
|
24
25
|
"author": "Eto",
|
|
25
26
|
"license": "MIT",
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"@etohq/
|
|
28
|
-
"@etohq/test-utils": "2.0.
|
|
29
|
-
"@etohq/types": "2.0.
|
|
28
|
+
"@etohq/search-postgres": "2.0.6",
|
|
29
|
+
"@etohq/test-utils": "2.0.6",
|
|
30
|
+
"@etohq/types": "2.0.6",
|
|
30
31
|
"@mikro-orm/cli": "6.4.3",
|
|
31
|
-
"@mikro-orm/core": "6.4.3",
|
|
32
|
-
"@mikro-orm/migrations": "6.4.3",
|
|
33
|
-
"@mikro-orm/postgresql": "6.4.3",
|
|
34
32
|
"@swc/core": "1.7.28",
|
|
35
33
|
"@swc/jest": "0.2.36",
|
|
36
34
|
"@types/jest": "29.5.14",
|
|
@@ -40,11 +38,7 @@
|
|
|
40
38
|
"typescript": "5.8.3"
|
|
41
39
|
},
|
|
42
40
|
"dependencies": {
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"@etohq/framework": "2.0.4",
|
|
47
|
-
"@etohq/types": "2.0.4",
|
|
41
|
+
"@etohq/framework": "2.0.6",
|
|
48
42
|
"@mikro-orm/core": "6.4.3",
|
|
49
43
|
"@mikro-orm/migrations": "6.4.3",
|
|
50
44
|
"@mikro-orm/postgresql": "6.4.3",
|
|
@@ -53,8 +47,8 @@
|
|
|
53
47
|
"scripts": {
|
|
54
48
|
"watch": "tsc --build --watch",
|
|
55
49
|
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
|
56
|
-
"build": "rm -rf dist && tsc --build && npm run resolve:aliases",
|
|
57
50
|
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
|
51
|
+
"build": "rm -rf dist && tsc --build && npm run resolve:aliases",
|
|
58
52
|
"test": "jest --runInBand --bail --forceExit --passWithNoTests -- src",
|
|
59
53
|
"test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts",
|
|
60
54
|
"migration:initial": " MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true MIKRO_ORM_PASSWORD=postgres eto-mikro-orm migration:create --initial -n InitialSetupMigration",
|