meadow-connection-postgresql 1.0.3 → 1.0.4
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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connection form schema for PostgreSQL.
|
|
3
|
+
*
|
|
4
|
+
* Consumed by meadow-connection-manager#getProviderFormSchema('PostgreSQL').
|
|
5
|
+
* Pure data — safe to require() even when the pg driver is not installed.
|
|
6
|
+
* See Meadow-Connection-MySQL-FormSchema.js for the full field contract.
|
|
7
|
+
*/
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
module.exports =
|
|
11
|
+
{
|
|
12
|
+
Provider: 'PostgreSQL',
|
|
13
|
+
DisplayName: 'PostgreSQL',
|
|
14
|
+
Description: 'Connect to a PostgreSQL server.',
|
|
15
|
+
Fields:
|
|
16
|
+
[
|
|
17
|
+
{ Name: 'host', Label: 'Host', Type: 'String', Default: '127.0.0.1', Required: true, Placeholder: '127.0.0.1' },
|
|
18
|
+
{ Name: 'port', Label: 'Port', Type: 'Number', Default: 5432, Required: true, Min: 1, Max: 65535 },
|
|
19
|
+
{ Name: 'user', Label: 'User', Type: 'String', Default: 'postgres', Required: true },
|
|
20
|
+
{ Name: 'password', Label: 'Password', Type: 'Password' },
|
|
21
|
+
{ Name: 'database', Label: 'Database', Type: 'String', Placeholder: 'meadow_clone' },
|
|
22
|
+
{ Name: 'max', Label: 'Connection Pool Limit', Type: 'Number', Default: 10, Min: 1, Group: 'Advanced' }
|
|
23
|
+
]
|
|
24
|
+
};
|