@itentialopensource/adapter-db_postgresql 1.0.0 → 1.0.1
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/AUTH.md +2 -3
- package/CHANGELOG.md +8 -0
- package/SYSTEMINFO.md +13 -1
- package/TAB1.md +11 -0
- package/TAB2.md +60 -0
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/metadata.json +35 -7
- package/package.json +7 -8
- package/refs?service=git-upload-pack +0 -0
- package/sampleProperties.json +1 -1
package/AUTH.md
CHANGED
|
@@ -11,9 +11,7 @@ STEPS
|
|
|
11
11
|
3. Use the properties below for the ```properties.authentication``` field
|
|
12
12
|
```json
|
|
13
13
|
"authentication": {
|
|
14
|
-
"
|
|
15
|
-
"domain": "",
|
|
16
|
-
"username": "sa",
|
|
14
|
+
"username": "username",
|
|
17
15
|
"password": "Password"
|
|
18
16
|
}
|
|
19
17
|
```
|
|
@@ -23,3 +21,4 @@ STEPS
|
|
|
23
21
|
- Make sure you copied over the correct username and password.
|
|
24
22
|
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
25
23
|
- Investigate the logs
|
|
24
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
package/CHANGELOG.md
CHANGED
package/SYSTEMINFO.md
CHANGED
|
@@ -7,5 +7,17 @@ Product: PostgreSQL
|
|
|
7
7
|
Product Page: https://www.postgresql.org/
|
|
8
8
|
|
|
9
9
|
## Introduction
|
|
10
|
+
We classify PostgreSQL into the Data Storage domaina as PostgreSQL is a database which provides the storage of information.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
"The World's Most Advanced Open Source Relational Database"
|
|
13
|
+
"PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance."
|
|
14
|
+
|
|
15
|
+
## Why Integrate
|
|
16
|
+
The PostgreSQL adapter from Itential is used to integrate the Itential Automation Platform (IAP) with PostgreSQL. With this adapter you have the ability to perform operations with PostgreSQL on items such as:
|
|
17
|
+
|
|
18
|
+
- Storage of Information
|
|
19
|
+
- Retrieval of Information
|
|
20
|
+
|
|
21
|
+
## Additional Product Documentation
|
|
22
|
+
The [PostgreSQL SQL Reference](https://www.postgresqltutorial.com/)
|
|
23
|
+
The [PostgreSQL Node Library Documentation](https://www.npmjs.com/package/pg)
|
package/TAB1.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
This adapter is used to integrate the Itential Automation Platform (IAP) with the PostgreSQL System. The API that was used to build the adapter for PostgreSQL is usually available in the report directory of this adapter. The adapter utilizes the PostgreSQL API to provide the integrations that are deemed pertinent to IAP. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
|
|
4
|
+
|
|
5
|
+
## Details
|
|
6
|
+
The PostgreSQL adapter from Itential is used to integrate the Itential Automation Platform (IAP) with PostgreSQL. With this adapter you have the ability to perform operations with PostgreSQL on items such as:
|
|
7
|
+
|
|
8
|
+
- Storage of Information
|
|
9
|
+
- Retrieval of Information
|
|
10
|
+
|
|
11
|
+
For further technical details on how to install and use this adapter, please click the Technical Documentation tab.
|
package/TAB2.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# PostgreSQL
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
|
|
5
|
+
- [Specific Adapter Information](#specific-adapter-information)
|
|
6
|
+
- [Authentication](#authentication)
|
|
7
|
+
- [Sample Properties](#sample-properties)
|
|
8
|
+
- [Swagger](#swagger)
|
|
9
|
+
- [Generic Adapter Information](#generic-adapter-information)
|
|
10
|
+
|
|
11
|
+
## Specific Adapter Information
|
|
12
|
+
### Authentication
|
|
13
|
+
|
|
14
|
+
This document will go through the steps for authenticating the PostgreSQL adapter with. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
15
|
+
|
|
16
|
+
#### Database Library Authentication
|
|
17
|
+
The PostgreSQL adapter requires Database Library Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
18
|
+
|
|
19
|
+
STEPS
|
|
20
|
+
1. Ensure you have access to a PostgreSQL server and that it is running
|
|
21
|
+
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
22
|
+
3. Use the properties below for the ```properties.authentication``` field
|
|
23
|
+
```json
|
|
24
|
+
"authentication": {
|
|
25
|
+
"username": "username",
|
|
26
|
+
"password": "Password"
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
30
|
+
|
|
31
|
+
#### Troubleshooting
|
|
32
|
+
- Make sure you copied over the correct username and password.
|
|
33
|
+
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
34
|
+
- Investigate the logs
|
|
35
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
|
36
|
+
### Sample Properties
|
|
37
|
+
|
|
38
|
+
Sample Properties can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
"properties": {
|
|
42
|
+
"database": "your database name",
|
|
43
|
+
"host": "localhost",
|
|
44
|
+
"port": 5432,
|
|
45
|
+
"authentication": {
|
|
46
|
+
"username": "your username",
|
|
47
|
+
"password": "your password"
|
|
48
|
+
},
|
|
49
|
+
"ssl": {
|
|
50
|
+
"enabled": false,
|
|
51
|
+
"accept_invalid_cert": false,
|
|
52
|
+
"ca_file": ""
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
### Swagger
|
|
57
|
+
|
|
58
|
+
Note: The content for this section may be missing as its corresponding .json file is unavailable. This sections will be updated once adapter-openapi.json file is added.
|
|
59
|
+
## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/persistence/adapter-db_postgresql/-/blob/master/README.md)
|
|
60
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
---------------------------------------------------------------------------------------------
|
|
2
|
+
**** Project Compliance Summary ****
|
|
3
|
+
0 project(s) are not valid
|
|
4
|
+
0 project(s) are valid
|
|
5
|
+
---------------------------------------------------------------------------------------------
|
package/metadata.json
CHANGED
|
@@ -16,26 +16,54 @@
|
|
|
16
16
|
"domains": [
|
|
17
17
|
"Data Storage"
|
|
18
18
|
],
|
|
19
|
-
"tags": [
|
|
20
|
-
|
|
19
|
+
"tags": [
|
|
20
|
+
"Database & Repository Operations"
|
|
21
|
+
],
|
|
22
|
+
"useCases": [
|
|
23
|
+
"CRUD Operations",
|
|
24
|
+
"Persist Data"
|
|
25
|
+
],
|
|
21
26
|
"deprecated": {
|
|
22
27
|
"isDeprecated": false
|
|
23
28
|
},
|
|
24
29
|
"brokerSince": "",
|
|
30
|
+
"authMethods": [
|
|
31
|
+
{
|
|
32
|
+
"type": "Database Auth",
|
|
33
|
+
"subtypes": [],
|
|
34
|
+
"primary": true
|
|
35
|
+
}
|
|
36
|
+
],
|
|
25
37
|
"documentation": {
|
|
26
38
|
"storeLink": "",
|
|
27
39
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-db_postgresql",
|
|
28
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
|
40
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-db_postgresql",
|
|
29
41
|
"docLink": "",
|
|
30
42
|
"demoLinks": [],
|
|
31
|
-
"trainingLinks": [
|
|
43
|
+
"trainingLinks": [
|
|
44
|
+
{
|
|
45
|
+
"title": "Itential Academy",
|
|
46
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
32
49
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
33
50
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
34
51
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
35
52
|
"webLink": "https://www.itential.com/adapters/postgresql/",
|
|
36
|
-
"vendorLink": "",
|
|
37
|
-
"productLink": "",
|
|
38
|
-
"apiLinks": [
|
|
53
|
+
"vendorLink": "https://www.postgresql.org/",
|
|
54
|
+
"productLink": "https://www.postgresql.org/",
|
|
55
|
+
"apiLinks": [
|
|
56
|
+
{
|
|
57
|
+
"title": "PostgreSQL SQL Reference",
|
|
58
|
+
"link": "https://www.postgresqltutorial.com/",
|
|
59
|
+
"public": true
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"title": "PostgreSQL Node Library Documentation",
|
|
63
|
+
"link": "https://www.npmjs.com/package/pg",
|
|
64
|
+
"public": true
|
|
65
|
+
}
|
|
66
|
+
]
|
|
39
67
|
},
|
|
40
68
|
"assets": [],
|
|
41
69
|
"relatedItems": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-db_postgresql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Itential adapter to connect to postgresql",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
15
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
16
16
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
17
|
-
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
18
17
|
"test": "npm run test:unit && npm run test:integration",
|
|
19
18
|
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
|
20
19
|
"build": "npm run deploy"
|
|
@@ -32,14 +31,15 @@
|
|
|
32
31
|
],
|
|
33
32
|
"license": "Apache-2.0",
|
|
34
33
|
"engines": {
|
|
35
|
-
"node": ">=
|
|
34
|
+
"node": ">=14.0.0",
|
|
35
|
+
"npm": ">=6.0.0"
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
39
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-db_postgresql.git"
|
|
40
40
|
},
|
|
41
41
|
"author": "Itential",
|
|
42
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
42
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-db_postgresql#readme",
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"ajv": "^8.12.0",
|
|
45
45
|
"fs-extra": "^11.1.1",
|
|
@@ -53,10 +53,9 @@
|
|
|
53
53
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
54
54
|
"eslint-plugin-import": "^2.27.5",
|
|
55
55
|
"eslint-plugin-json": "^3.1.0",
|
|
56
|
-
"mocha": "^
|
|
57
|
-
"nyc": "^15.1.0",
|
|
56
|
+
"mocha": "^10.7.0",
|
|
58
57
|
"testdouble": "^3.18.0",
|
|
59
|
-
"winston": "^3.
|
|
58
|
+
"winston": "^3.13.1"
|
|
60
59
|
},
|
|
61
60
|
"private": false
|
|
62
61
|
}
|
|
Binary file
|