@tablecraft-app/plugin-postgres 0.0.0-stage → 1.2.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/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@tablecraft-app/plugin-postgres",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.2.0",
4
+ "description": "The PostgreSQL datasource plugin for TableCraft, downloaded by the app when a data source needs it.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "index.js",
8
+ "files": [
9
+ "index.js",
10
+ "table-craft-plugin.json"
11
+ ],
12
+ "keywords": [
13
+ "table-craft-plugin",
14
+ "tablecraft",
15
+ "postgres"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/tranphucbol/table-craft.git",
20
+ "directory": "plugins/postgres"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "tableCraft": {
26
+ "id": "postgres",
27
+ "apiVersion": "1.1.0"
28
+ }
29
+ }
@@ -0,0 +1,187 @@
1
+ {
2
+ "id": "postgres",
3
+ "name": "PostgreSQL",
4
+ "version": "1.2.0",
5
+ "apiVersion": "1.1.0",
6
+ "entry": "index.js",
7
+ "capabilities": [
8
+ "sql",
9
+ "cancel",
10
+ "schemaTree",
11
+ "transactions",
12
+ "ddl",
13
+ "explain",
14
+ "explainAnalyze",
15
+ "currentNamespace",
16
+ "keepAlive",
17
+ "bulkInsert",
18
+ "objects",
19
+ "serverMessages",
20
+ "sessions",
21
+ "routineCall"
22
+ ],
23
+ "highlight": "postgresql",
24
+ "connection": {
25
+ "fields": [
26
+ {
27
+ "key": "host",
28
+ "label": "Host",
29
+ "kind": "text",
30
+ "default": "localhost",
31
+ "required": true
32
+ },
33
+ {
34
+ "key": "port",
35
+ "label": "Port",
36
+ "kind": "number",
37
+ "default": 5432,
38
+ "required": true
39
+ },
40
+ {
41
+ "key": "database",
42
+ "label": "Database",
43
+ "kind": "text",
44
+ "default": "postgres",
45
+ "required": true
46
+ },
47
+ {
48
+ "key": "user",
49
+ "label": "User",
50
+ "kind": "text",
51
+ "required": true
52
+ },
53
+ {
54
+ "key": "password",
55
+ "label": "Password",
56
+ "kind": "password",
57
+ "secret": true
58
+ },
59
+ {
60
+ "key": "sslMode",
61
+ "label": "SSL mode",
62
+ "kind": "select",
63
+ "default": "disable",
64
+ "group": "advanced",
65
+ "options": [
66
+ {
67
+ "value": "disable",
68
+ "label": "Disable"
69
+ },
70
+ {
71
+ "value": "require",
72
+ "label": "Require"
73
+ },
74
+ {
75
+ "value": "verify-ca",
76
+ "label": "Verify CA"
77
+ },
78
+ {
79
+ "value": "verify-full",
80
+ "label": "Verify full"
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "key": "sslRootCert",
86
+ "label": "SSL root certificate",
87
+ "kind": "file",
88
+ "group": "advanced"
89
+ },
90
+ {
91
+ "key": "sslCert",
92
+ "label": "Client certificate",
93
+ "kind": "file",
94
+ "group": "advanced"
95
+ },
96
+ {
97
+ "key": "sslKey",
98
+ "label": "Client key",
99
+ "kind": "file",
100
+ "group": "advanced"
101
+ },
102
+ {
103
+ "key": "sslKeyPassphrase",
104
+ "label": "Client key passphrase",
105
+ "kind": "password",
106
+ "secret": true,
107
+ "group": "advanced"
108
+ },
109
+ {
110
+ "key": "connectTimeout",
111
+ "label": "Connect timeout (s)",
112
+ "kind": "number",
113
+ "default": 10,
114
+ "group": "advanced"
115
+ },
116
+ {
117
+ "key": "applicationName",
118
+ "label": "Application name",
119
+ "kind": "text",
120
+ "default": "TableCraft",
121
+ "group": "advanced"
122
+ }
123
+ ],
124
+ "url": {
125
+ "schemes": [
126
+ "postgresql",
127
+ "postgres"
128
+ ],
129
+ "form": "server",
130
+ "parts": {
131
+ "host": "host",
132
+ "port": "port",
133
+ "database": "database",
134
+ "user": "user",
135
+ "password": "password"
136
+ },
137
+ "params": [
138
+ {
139
+ "name": "sslmode",
140
+ "key": "sslMode",
141
+ "values": {
142
+ "disable": "disable",
143
+ "require": "require",
144
+ "verify-ca": "verify-ca",
145
+ "verify-full": "verify-full"
146
+ }
147
+ },
148
+ {
149
+ "name": "sslrootcert",
150
+ "key": "sslRootCert"
151
+ },
152
+ {
153
+ "name": "sslcert",
154
+ "key": "sslCert"
155
+ },
156
+ {
157
+ "name": "sslkey",
158
+ "key": "sslKey"
159
+ },
160
+ {
161
+ "name": "connect_timeout",
162
+ "key": "connectTimeout"
163
+ },
164
+ {
165
+ "name": "application_name",
166
+ "key": "applicationName"
167
+ }
168
+ ]
169
+ },
170
+ "network": {
171
+ "host": "host",
172
+ "port": "port",
173
+ "connectTimeout": "connectTimeout"
174
+ },
175
+ "tls": {
176
+ "mode": "sslMode",
177
+ "verifyModes": [
178
+ "verify-ca",
179
+ "verify-full"
180
+ ],
181
+ "caFile": "sslRootCert",
182
+ "certFile": "sslCert",
183
+ "keyFile": "sslKey",
184
+ "keyPassphrase": "sslKeyPassphrase"
185
+ }
186
+ }
187
+ }