@memberjunction/connector-postgresql 1.0.0
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/dist/PostgresConnector.d.ts +15 -0
- package/dist/PostgresConnector.js +32 -0
- package/dist/PostgresConnector.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseSqlExternalDataSourceConnector } from '@memberjunction/integration-connectors';
|
|
2
|
+
import '@memberjunction/external-data-source-postgres';
|
|
3
|
+
/**
|
|
4
|
+
* PostgreSQL ingestion connector — a **thin nominal leaf**. It carries no logic: all
|
|
5
|
+
* connect / introspect / read is delegated to the shared EDS PostgreSQL driver ('PostgresExternalDriver'),
|
|
6
|
+
* and incremental sync + record assembly live in {@link BaseSqlExternalDataSourceConnector}. The connection binds to a
|
|
7
|
+
* shared `MJ: External Data Sources` row via `CompanyIntegration.Configuration.externalDataSourceID`
|
|
8
|
+
* (credentials + host on that EDS row, via CredentialEngine). Exists so PostgreSQL is a first-class,
|
|
9
|
+
* discoverable Integration consistent with every other connector.
|
|
10
|
+
*
|
|
11
|
+
* Requires @memberjunction/* >= 5.46.0 (the EDS-consuming connector heart + the PostgresExternalDriver driver).
|
|
12
|
+
*/
|
|
13
|
+
export declare class PostgresConnector extends BaseSqlExternalDataSourceConnector {
|
|
14
|
+
get IntegrationName(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { RegisterClass } from '@memberjunction/global';
|
|
8
|
+
import { BaseIntegrationConnector } from '@memberjunction/integration-engine';
|
|
9
|
+
import { BaseSqlExternalDataSourceConnector } from '@memberjunction/integration-connectors';
|
|
10
|
+
// Side-effect import: registers the PostgreSQL EDS driver ('PostgresExternalDriver') with the MJGlobal
|
|
11
|
+
// ClassFactory so this connector can resolve it at runtime via ExternalDataSourceRouter.
|
|
12
|
+
import '@memberjunction/external-data-source-postgres';
|
|
13
|
+
/**
|
|
14
|
+
* PostgreSQL ingestion connector — a **thin nominal leaf**. It carries no logic: all
|
|
15
|
+
* connect / introspect / read is delegated to the shared EDS PostgreSQL driver ('PostgresExternalDriver'),
|
|
16
|
+
* and incremental sync + record assembly live in {@link BaseSqlExternalDataSourceConnector}. The connection binds to a
|
|
17
|
+
* shared `MJ: External Data Sources` row via `CompanyIntegration.Configuration.externalDataSourceID`
|
|
18
|
+
* (credentials + host on that EDS row, via CredentialEngine). Exists so PostgreSQL is a first-class,
|
|
19
|
+
* discoverable Integration consistent with every other connector.
|
|
20
|
+
*
|
|
21
|
+
* Requires @memberjunction/* >= 5.46.0 (the EDS-consuming connector heart + the PostgresExternalDriver driver).
|
|
22
|
+
*/
|
|
23
|
+
let PostgresConnector = class PostgresConnector extends BaseSqlExternalDataSourceConnector {
|
|
24
|
+
get IntegrationName() {
|
|
25
|
+
return 'PostgreSQL';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
PostgresConnector = __decorate([
|
|
29
|
+
RegisterClass(BaseIntegrationConnector, 'PostgresConnector')
|
|
30
|
+
], PostgresConnector);
|
|
31
|
+
export { PostgresConnector };
|
|
32
|
+
//# sourceMappingURL=PostgresConnector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PostgresConnector.js","sourceRoot":"","sources":["../src/PostgresConnector.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,uGAAuG;AACvG,yFAAyF;AACzF,OAAO,+CAA+C,CAAC;AAEvD;;;;;;;;;GASG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,kCAAkC;IACrE,IAAoB,eAAe;QAC/B,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ,CAAA;AAJY,iBAAiB;IAD7B,aAAa,CAAC,wBAAwB,EAAE,mBAAmB,CAAC;GAChD,iBAAiB,CAI7B"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './PostgresConnector.js';
|
|
2
|
+
/** Open App bootstrap entry: importing this module ran the connector's @RegisterClass decorator (and the
|
|
3
|
+
* EDS driver's, via the side-effect import); this no-op satisfies the loader's required startupExport
|
|
4
|
+
* and forces the import at MJAPI boot. */
|
|
5
|
+
export declare function registerConnector(): void;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './PostgresConnector.js';
|
|
2
|
+
/** Open App bootstrap entry: importing this module ran the connector's @RegisterClass decorator (and the
|
|
3
|
+
* EDS driver's, via the side-effect import); this no-op satisfies the loader's required startupExport
|
|
4
|
+
* and forces the import at MJAPI boot. */
|
|
5
|
+
export function registerConnector() { }
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC;;2CAE2C;AAC3C,MAAM,UAAU,iBAAiB,KAAiD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@memberjunction/connector-postgresql",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MemberJunction PostgreSQL connector (External Data Source ingestion).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"/dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc && tsc-alias -f",
|
|
13
|
+
"test": "vitest run --passWithNoTests"
|
|
14
|
+
},
|
|
15
|
+
"author": "MemberJunction.com",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"@memberjunction/core": ">=5.46.0 <6.0.0",
|
|
19
|
+
"@memberjunction/core-entities": ">=5.46.0 <6.0.0",
|
|
20
|
+
"@memberjunction/global": ">=5.46.0 <6.0.0",
|
|
21
|
+
"@memberjunction/integration-engine": ">=5.46.0 <6.0.0",
|
|
22
|
+
"@memberjunction/integration-connectors": ">=5.46.0 <6.0.0",
|
|
23
|
+
"@memberjunction/external-data-sources": ">=5.46.0 <6.0.0",
|
|
24
|
+
"@memberjunction/external-data-source-postgres": ">=5.46.0 <6.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "24.10.11",
|
|
28
|
+
"tsc-alias": "^1.8.16",
|
|
29
|
+
"typescript": "^5.9.3",
|
|
30
|
+
"vitest": "^4.0.18"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/MemberJunction/Integrations"
|
|
35
|
+
}
|
|
36
|
+
}
|