plugin-data-source-postgres 2.0.0 → 2.1.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/README.md +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-v2/index.js +1 -1
- package/dist/constants.js +3 -0
- package/dist/externalVersion.js +10 -8
- package/dist/locale/en-US.json +8 -1
- package/dist/locale/zh-CN.json +8 -1
- package/dist/server/collections/sql-collection.js +2 -2
- package/dist/server/collections/sql-model.js +4 -2
- package/dist/server/hooks/field-hooks.js +20 -0
- package/dist/server/plugin.js +727 -23
- package/dist/server/postgres-collection-manager.js +192 -25
- package/dist/server/postgres-datasource.js +47 -13
- package/dist/server/utils/sql-validator.js +119 -69
- package/package.json +2 -2
- package/src/client/ConfigurationForm.tsx +312 -133
- package/src/client/__tests__/client-v1.test.tsx +80 -0
- package/src/client-v2/PostgresConfigForm.tsx +133 -6
- package/src/client-v2/__tests__/plugin.test.tsx +69 -0
- package/src/client-v2/plugin.tsx +2 -2
- package/src/constants.ts +15 -0
- package/src/locale/en-US.json +8 -1
- package/src/locale/zh-CN.json +8 -1
- package/src/server/__tests__/postgres-datasource.unit.test.ts +1038 -0
- package/src/server/__tests__/sql-model.test.ts +47 -3
- package/src/server/__tests__/sql-validator.test.ts +8 -1
- package/src/server/collections/sql-collection.ts +2 -2
- package/src/server/collections/sql-model.ts +2 -2
- package/src/server/hooks/field-hooks.ts +36 -2
- package/src/server/plugin.ts +912 -18
- package/src/server/postgres-collection-manager.ts +228 -28
- package/src/server/postgres-datasource.ts +57 -12
- package/src/server/utils/sql-validator.ts +123 -68
- package/dist/client-v2/985.34da95acdf7743ab.js +0 -10
|
@@ -7,15 +7,32 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { Checkbox, Form, Input, InputNumber, Select } from 'antd';
|
|
12
12
|
import { useFlowContext } from '@nocobase/flow-engine';
|
|
13
13
|
import type { DataSourceSettingsFormProps } from '@nocobase/plugin-data-source-manager/client-v2';
|
|
14
14
|
import { useTranslation } from 'react-i18next';
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
DATA_SOURCE_TYPE,
|
|
17
|
+
DEFAULT_PORT,
|
|
18
|
+
DEFAULT_SCHEMA,
|
|
19
|
+
LIST_SAVED_CONNECTIONS_ACTION,
|
|
20
|
+
NAMESPACE,
|
|
21
|
+
type SavedPostgresConnection,
|
|
22
|
+
} from '../constants';
|
|
16
23
|
import { toCollectionOptions } from './collection-options';
|
|
17
24
|
|
|
18
|
-
const CONNECTION_FIELDS = [
|
|
25
|
+
const CONNECTION_FIELDS = [
|
|
26
|
+
'sourceConnectionKey',
|
|
27
|
+
'host',
|
|
28
|
+
'port',
|
|
29
|
+
'database',
|
|
30
|
+
'schema',
|
|
31
|
+
'username',
|
|
32
|
+
'password',
|
|
33
|
+
'ssl',
|
|
34
|
+
'sslCa',
|
|
35
|
+
] as const;
|
|
19
36
|
|
|
20
37
|
function normalizeConnectionField(field: (typeof CONNECTION_FIELDS)[number], options?: Record<string, unknown>) {
|
|
21
38
|
const value = options?.[field];
|
|
@@ -23,14 +40,21 @@ function normalizeConnectionField(field: (typeof CONNECTION_FIELDS)[number], opt
|
|
|
23
40
|
if (field === 'schema') return typeof value === 'string' && value ? value : DEFAULT_SCHEMA;
|
|
24
41
|
if (field === 'ssl') return Boolean(value);
|
|
25
42
|
if (field === 'sslCa') return value ?? '';
|
|
43
|
+
if (field === 'sourceConnectionKey') return typeof value === 'string' ? value : '';
|
|
26
44
|
return value;
|
|
27
45
|
}
|
|
28
46
|
|
|
47
|
+
function formatSavedConnectionLabel(item: SavedPostgresConnection): string {
|
|
48
|
+
const target = item.database ? `/${item.database}` : '';
|
|
49
|
+
return `${item.displayName} (${item.username}@${item.host}:${item.port}${target})`;
|
|
50
|
+
}
|
|
51
|
+
|
|
29
52
|
export default function PostgresConfigForm({ mode, initialValues, loadCollections }: DataSourceSettingsFormProps) {
|
|
30
53
|
const { t } = useTranslation(NAMESPACE);
|
|
31
54
|
const ctx = useFlowContext();
|
|
32
55
|
const form = Form.useFormInstance();
|
|
33
56
|
const watchedAddAll = Form.useWatch(['options', 'addAllCollections'], form);
|
|
57
|
+
const sourceConnectionKey = Form.useWatch(['options', 'sourceConnectionKey'], form);
|
|
34
58
|
const host = Form.useWatch(['options', 'host'], form);
|
|
35
59
|
const port = Form.useWatch(['options', 'port'], form);
|
|
36
60
|
const database = Form.useWatch(['options', 'database'], form);
|
|
@@ -39,6 +63,7 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
39
63
|
const password = Form.useWatch(['options', 'password'], form);
|
|
40
64
|
const ssl = Form.useWatch(['options', 'ssl'], form);
|
|
41
65
|
const sslCa = Form.useWatch(['options', 'sslCa'], form);
|
|
66
|
+
const [savedConnections, setSavedConnections] = useState<SavedPostgresConnection[]>([]);
|
|
42
67
|
const [collectionOptions, setCollectionOptions] = useState<{ label: string; value: string }[]>([]);
|
|
43
68
|
const [loading, setLoading] = useState(false);
|
|
44
69
|
const requestGeneration = useRef(0);
|
|
@@ -50,6 +75,20 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
50
75
|
const addAllCollections = watchedAddAll ?? initialAddAll;
|
|
51
76
|
const preserveLegacySelection = mode === 'edit' && !initialAddAll && !Array.isArray(savedSelection);
|
|
52
77
|
|
|
78
|
+
const selectedSavedConnection = useMemo(
|
|
79
|
+
() => savedConnections.find((item) => item.key === sourceConnectionKey),
|
|
80
|
+
[savedConnections, sourceConnectionKey],
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const savedConnectionOptions = useMemo(
|
|
84
|
+
() =>
|
|
85
|
+
savedConnections.map((item) => ({
|
|
86
|
+
value: item.key,
|
|
87
|
+
label: formatSavedConnectionLabel(item),
|
|
88
|
+
})),
|
|
89
|
+
[savedConnections],
|
|
90
|
+
);
|
|
91
|
+
|
|
53
92
|
useEffect(() => {
|
|
54
93
|
if (form.getFieldValue(['options', 'host']) === undefined) {
|
|
55
94
|
form.setFieldValue(['options', 'host'], 'localhost');
|
|
@@ -74,6 +113,42 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
74
113
|
}
|
|
75
114
|
}, [form, initialAddAll, mode, preserveLegacySelection, savedSelection]);
|
|
76
115
|
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
let cancelled = false;
|
|
118
|
+
const loadSavedConnections = async () => {
|
|
119
|
+
try {
|
|
120
|
+
const response = await ctx.api.request<{ data?: SavedPostgresConnection[] }>({
|
|
121
|
+
url: LIST_SAVED_CONNECTIONS_ACTION,
|
|
122
|
+
method: 'get',
|
|
123
|
+
});
|
|
124
|
+
if (cancelled) return;
|
|
125
|
+
const items = Array.isArray(response?.data?.data) ? response.data.data : [];
|
|
126
|
+
const currentKey = typeof initialValues?.key === 'string' ? initialValues.key : '';
|
|
127
|
+
setSavedConnections(mode === 'edit' && currentKey ? items.filter((item) => item.key !== currentKey) : items);
|
|
128
|
+
} catch {
|
|
129
|
+
if (!cancelled) setSavedConnections([]);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
loadSavedConnections();
|
|
133
|
+
return () => {
|
|
134
|
+
cancelled = true;
|
|
135
|
+
};
|
|
136
|
+
}, [ctx.api, initialValues?.key, mode]);
|
|
137
|
+
|
|
138
|
+
useEffect(() => {
|
|
139
|
+
if (!selectedSavedConnection || host === undefined || username === undefined) return;
|
|
140
|
+
const currentHost = String(host || '').trim();
|
|
141
|
+
const currentPort = Number(port ?? DEFAULT_PORT);
|
|
142
|
+
const currentUsername = String(username || '').trim();
|
|
143
|
+
if (
|
|
144
|
+
currentHost !== selectedSavedConnection.host ||
|
|
145
|
+
currentPort !== selectedSavedConnection.port ||
|
|
146
|
+
currentUsername !== selectedSavedConnection.username
|
|
147
|
+
) {
|
|
148
|
+
form.setFieldValue(['options', 'sourceConnectionKey'], undefined);
|
|
149
|
+
}
|
|
150
|
+
}, [form, host, port, selectedSavedConnection, username]);
|
|
151
|
+
|
|
77
152
|
useEffect(() => {
|
|
78
153
|
requestGeneration.current += 1;
|
|
79
154
|
cachedConnection.current = undefined;
|
|
@@ -81,7 +156,32 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
81
156
|
isLoading.current = false;
|
|
82
157
|
setCollectionOptions([]);
|
|
83
158
|
setLoading(false);
|
|
84
|
-
}, [host, port, database, schema, username, password, ssl, sslCa]);
|
|
159
|
+
}, [sourceConnectionKey, host, port, database, schema, username, password, ssl, sslCa]);
|
|
160
|
+
|
|
161
|
+
const handleSelectSavedConnection = useCallback(
|
|
162
|
+
(nextKey?: string) => {
|
|
163
|
+
if (!nextKey) {
|
|
164
|
+
form.setFieldValue(['options', 'sourceConnectionKey'], undefined);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
const selected = savedConnections.find((item) => item.key === nextKey);
|
|
168
|
+
if (!selected) return;
|
|
169
|
+
form.setFieldsValue({
|
|
170
|
+
options: {
|
|
171
|
+
sourceConnectionKey: selected.key,
|
|
172
|
+
host: selected.host,
|
|
173
|
+
port: selected.port,
|
|
174
|
+
database: selected.database,
|
|
175
|
+
schema: selected.schema,
|
|
176
|
+
username: selected.username,
|
|
177
|
+
password: '',
|
|
178
|
+
ssl: selected.ssl,
|
|
179
|
+
sslCa: '',
|
|
180
|
+
},
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
[form, savedConnections],
|
|
184
|
+
);
|
|
85
185
|
|
|
86
186
|
const handleLoadCollections = useCallback(async () => {
|
|
87
187
|
const values = form.getFieldsValue(true);
|
|
@@ -128,6 +228,24 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
128
228
|
|
|
129
229
|
return (
|
|
130
230
|
<>
|
|
231
|
+
{savedConnectionOptions.length > 0 ? (
|
|
232
|
+
<Form.Item
|
|
233
|
+
name={['options', 'sourceConnectionKey']}
|
|
234
|
+
label={t('Saved connection')}
|
|
235
|
+
tooltip={t('Reuse an existing PostgreSQL connection or leave blank to create a new one')}
|
|
236
|
+
>
|
|
237
|
+
<Select
|
|
238
|
+
allowClear
|
|
239
|
+
showSearch
|
|
240
|
+
optionFilterProp="label"
|
|
241
|
+
placeholder={String(t('Create new connection'))}
|
|
242
|
+
notFoundContent={String(t('No saved PostgreSQL connections'))}
|
|
243
|
+
options={savedConnectionOptions}
|
|
244
|
+
onChange={handleSelectSavedConnection}
|
|
245
|
+
aria-label={String(t('Saved connection'))}
|
|
246
|
+
/>
|
|
247
|
+
</Form.Item>
|
|
248
|
+
) : null}
|
|
131
249
|
<Form.Item name={['options', 'host']} label={t('Host')} rules={[{ required: true }]}>
|
|
132
250
|
<Input />
|
|
133
251
|
</Form.Item>
|
|
@@ -144,14 +262,23 @@ export default function PostgresConfigForm({ mode, initialValues, loadCollection
|
|
|
144
262
|
<Input />
|
|
145
263
|
</Form.Item>
|
|
146
264
|
<Form.Item name={['options', 'password']} label={t('Password')}>
|
|
147
|
-
<Input.Password
|
|
265
|
+
<Input.Password
|
|
266
|
+
placeholder={
|
|
267
|
+
selectedSavedConnection?.hasPassword ? String(t('Leave blank to reuse saved password')) : undefined
|
|
268
|
+
}
|
|
269
|
+
/>
|
|
148
270
|
</Form.Item>
|
|
149
271
|
<Form.Item name={['options', 'ssl']} label={t('Use SSL')} valuePropName="checked">
|
|
150
272
|
<Checkbox />
|
|
151
273
|
</Form.Item>
|
|
152
274
|
{ssl ? (
|
|
153
275
|
<Form.Item name={['options', 'sslCa']} label={t('CA certificate (PEM)')}>
|
|
154
|
-
<Input.TextArea
|
|
276
|
+
<Input.TextArea
|
|
277
|
+
autoSize={{ minRows: 3, maxRows: 8 }}
|
|
278
|
+
placeholder={
|
|
279
|
+
selectedSavedConnection?.hasSslCa ? String(t('Leave blank to reuse saved CA certificate')) : undefined
|
|
280
|
+
}
|
|
281
|
+
/>
|
|
155
282
|
</Form.Item>
|
|
156
283
|
) : null}
|
|
157
284
|
<Form.Item name={['options', 'addAllCollections']} label={t('Load all collections')} valuePropName="checked">
|
|
@@ -369,4 +369,73 @@ describe('PostgreSQL native client v2', () => {
|
|
|
369
369
|
await waitFor(() => expect(submitted).toHaveBeenCalledOnce());
|
|
370
370
|
expect(app.apiMock.history.post[0].params).toEqual({ filterByTk: ['orders'], cascade: false });
|
|
371
371
|
});
|
|
372
|
+
|
|
373
|
+
it('allows selecting a saved PostgreSQL connection in v2 PostgresConfigForm and clears it when host changes', async () => {
|
|
374
|
+
const { app } = registerPostgresType();
|
|
375
|
+
app.apiMock.onGet('dataSources:listPostgresConnections').reply(200, {
|
|
376
|
+
data: [
|
|
377
|
+
{
|
|
378
|
+
key: 'pg_saved',
|
|
379
|
+
displayName: 'Primary PG',
|
|
380
|
+
host: 'pg.internal',
|
|
381
|
+
port: 5433,
|
|
382
|
+
database: 'sales',
|
|
383
|
+
schema: 'billing',
|
|
384
|
+
username: 'pg_admin',
|
|
385
|
+
ssl: true,
|
|
386
|
+
hasPassword: true,
|
|
387
|
+
hasSslCa: true,
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
});
|
|
391
|
+
app.apiMock.onPost('dataSources:readTables').reply(200, { data: [{ name: 'invoices' }] });
|
|
392
|
+
|
|
393
|
+
function SavedConnectionHarness() {
|
|
394
|
+
const [form] = Form.useForm();
|
|
395
|
+
return (
|
|
396
|
+
<FlowEngineProvider engine={app.flowEngine}>
|
|
397
|
+
<Form form={form} initialValues={{ key: 'pg_new', options: { addAllCollections: false } }}>
|
|
398
|
+
<PostgresConfigForm mode="create" loadCollections={vi.fn().mockResolvedValue([])} />
|
|
399
|
+
</Form>
|
|
400
|
+
</FlowEngineProvider>
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
render(<SavedConnectionHarness />);
|
|
405
|
+
|
|
406
|
+
const savedSelect = await screen.findByRole('combobox', { name: 'Saved connection' });
|
|
407
|
+
fireEvent.mouseDown(savedSelect);
|
|
408
|
+
fireEvent.click(await screen.findByText('Primary PG (pg_admin@pg.internal:5433/sales)'));
|
|
409
|
+
|
|
410
|
+
await waitFor(() => {
|
|
411
|
+
expect((screen.getByLabelText('Host') as HTMLInputElement).value).toBe('pg.internal');
|
|
412
|
+
expect((screen.getByLabelText('Database') as HTMLInputElement).value).toBe('sales');
|
|
413
|
+
expect((screen.getByLabelText('Schema') as HTMLInputElement).value).toBe('billing');
|
|
414
|
+
expect((screen.getByLabelText('Username') as HTMLInputElement).value).toBe('pg_admin');
|
|
415
|
+
expect((screen.getByLabelText('Password') as HTMLInputElement).placeholder).toBe(
|
|
416
|
+
'Leave blank to reuse saved password',
|
|
417
|
+
);
|
|
418
|
+
expect((screen.getByLabelText('CA certificate (PEM)') as HTMLTextAreaElement).placeholder).toBe(
|
|
419
|
+
'Leave blank to reuse saved CA certificate',
|
|
420
|
+
);
|
|
421
|
+
});
|
|
422
|
+
|
|
423
|
+
// Triggering readTables forwards sourceConnectionKey so the server hydrates credentials.
|
|
424
|
+
fireEvent.focus(screen.getByLabelText('Collections'));
|
|
425
|
+
await waitFor(() => expect(app.apiMock.history.post).toHaveLength(1));
|
|
426
|
+
const readTablesPayload = JSON.parse(app.apiMock.history.post[0].data);
|
|
427
|
+
expect(readTablesPayload.dbOptions).toMatchObject({
|
|
428
|
+
type: DATA_SOURCE_TYPE,
|
|
429
|
+
sourceConnectionKey: 'pg_saved',
|
|
430
|
+
host: 'pg.internal',
|
|
431
|
+
port: 5433,
|
|
432
|
+
username: 'pg_admin',
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
// Editing host to a different server clears sourceConnectionKey and secret reuse placeholders.
|
|
436
|
+
fireEvent.change(screen.getByLabelText('Host'), { target: { value: 'other.internal' } });
|
|
437
|
+
await waitFor(() => {
|
|
438
|
+
expect((screen.getByLabelText('Password') as HTMLInputElement).placeholder).toBe('');
|
|
439
|
+
});
|
|
440
|
+
});
|
|
372
441
|
});
|
package/src/client-v2/plugin.tsx
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import React from 'react';
|
|
11
10
|
import { Application, Plugin } from '@nocobase/client-v2';
|
|
12
11
|
import PluginDataSourceManagerClientV2 from '@nocobase/plugin-data-source-manager/client-v2';
|
|
13
12
|
import { DATA_SOURCE_TYPE, DEFAULT_PORT, DEFAULT_SCHEMA } from '../constants';
|
|
14
13
|
import { PostgresAddCollection } from './PostgresAddCollection';
|
|
14
|
+
import PostgresConfigForm from './PostgresConfigForm';
|
|
15
15
|
import { PostgresDeleteCollection } from './PostgresDeleteCollection';
|
|
16
16
|
|
|
17
17
|
const UNSUPPORTED_CREATE_FIELD_INTERFACES = [
|
|
@@ -41,7 +41,7 @@ export class PluginDataSourcePostgresClientV2 extends Plugin<Record<string, neve
|
|
|
41
41
|
addAllCollections: true,
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
|
-
SettingsForm:
|
|
44
|
+
SettingsForm: PostgresConfigForm,
|
|
45
45
|
allowCollectionCreate: true,
|
|
46
46
|
allowCollectionDeletion: true,
|
|
47
47
|
disableAddFields: false,
|
package/src/constants.ts
CHANGED
|
@@ -18,3 +18,18 @@ export const NAMESPACE = 'plugin-data-source-postgres';
|
|
|
18
18
|
export const DEFAULT_PORT = 5432;
|
|
19
19
|
|
|
20
20
|
export const DEFAULT_SCHEMA = 'public';
|
|
21
|
+
|
|
22
|
+
export const LIST_SAVED_CONNECTIONS_ACTION = 'dataSources:listPostgresConnections';
|
|
23
|
+
|
|
24
|
+
export interface SavedPostgresConnection {
|
|
25
|
+
key: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
host: string;
|
|
28
|
+
port: number;
|
|
29
|
+
database: string;
|
|
30
|
+
schema: string;
|
|
31
|
+
username: string;
|
|
32
|
+
ssl: boolean;
|
|
33
|
+
hasPassword: boolean;
|
|
34
|
+
hasSslCa: boolean;
|
|
35
|
+
}
|
package/src/locale/en-US.json
CHANGED
|
@@ -137,5 +137,12 @@
|
|
|
137
137
|
"Column name": "Column name",
|
|
138
138
|
"Column name is required": "Column name is required",
|
|
139
139
|
"Foreign key {{foreignKey}} cannot have the same name as relation field {{name}}": "Foreign key {{foreignKey}} cannot have the same name as relation field {{name}}",
|
|
140
|
-
"Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}": "Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}"
|
|
140
|
+
"Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}": "Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}",
|
|
141
|
+
"Saved connection": "Saved connection",
|
|
142
|
+
"Reuse an existing PostgreSQL connection or leave blank to create a new one": "Reuse an existing PostgreSQL connection or leave blank to create a new one",
|
|
143
|
+
"Create new connection": "Create new connection",
|
|
144
|
+
"Leave blank to reuse saved password": "Leave blank to reuse saved password",
|
|
145
|
+
"Leave blank to reuse saved CA certificate": "Leave blank to reuse saved CA certificate",
|
|
146
|
+
"Saved PostgreSQL connection {{name}} does not exist": "Saved PostgreSQL connection {{name}} does not exist",
|
|
147
|
+
"No saved PostgreSQL connections": "No saved PostgreSQL connections"
|
|
141
148
|
}
|
package/src/locale/zh-CN.json
CHANGED
|
@@ -137,5 +137,12 @@
|
|
|
137
137
|
"Column name": "列名",
|
|
138
138
|
"Column name is required": "请输入列名",
|
|
139
139
|
"Foreign key {{foreignKey}} cannot have the same name as relation field {{name}}": "外键 {{foreignKey}} 不能与关系字段 {{name}} 同名",
|
|
140
|
-
"Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}": "外键 {{collection}}.{{field}} 的 PostgreSQL 类型 {{type}} 不兼容"
|
|
140
|
+
"Foreign key {{collection}}.{{field}} has incompatible PostgreSQL type {{type}}": "外键 {{collection}}.{{field}} 的 PostgreSQL 类型 {{type}} 不兼容",
|
|
141
|
+
"Saved connection": "已保存的连接",
|
|
142
|
+
"Reuse an existing PostgreSQL connection or leave blank to create a new one": "复用已有的 PostgreSQL 连接,或留空以创建新连接",
|
|
143
|
+
"Create new connection": "创建新连接",
|
|
144
|
+
"Leave blank to reuse saved password": "留空以复用已保存的密码",
|
|
145
|
+
"Leave blank to reuse saved CA certificate": "留空以复用已保存的 CA 证书",
|
|
146
|
+
"Saved PostgreSQL connection {{name}} does not exist": "已保存的 PostgreSQL 连接 {{name}} 不存在",
|
|
147
|
+
"No saved PostgreSQL connections": "暂无已保存的 PostgreSQL 连接"
|
|
141
148
|
}
|