@pulumi/postgresql 3.12.0-alpha.1713337090 → 3.12.0-alpha.1713346374
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/defaultPrivileg.d.ts +6 -6
- package/defaultPrivileg.js +6 -6
- package/defaultPrivileges.d.ts +6 -6
- package/defaultPrivileges.js +6 -6
- package/extension.d.ts +1 -1
- package/extension.js +1 -1
- package/function.d.ts +6 -6
- package/function.js +6 -6
- package/grant.d.ts +12 -12
- package/grant.js +12 -12
- package/grantRole.d.ts +4 -4
- package/grantRole.js +4 -4
- package/package.json +1 -1
- package/physicalReplicationSlot.d.ts +1 -1
- package/physicalReplicationSlot.js +1 -1
- package/publication.d.ts +7 -4
- package/publication.js +7 -4
- package/publication.js.map +1 -1
- package/replicationSlot.d.ts +4 -1
- package/replicationSlot.js +4 -1
- package/replicationSlot.js.map +1 -1
- package/server.d.ts +4 -4
- package/server.js +4 -4
- package/subscription.d.ts +1 -0
- package/subscription.js +1 -0
- package/subscription.js.map +1 -1
- package/userMapping.d.ts +5 -5
- package/userMapping.js +5 -5
package/defaultPrivileg.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as postgresql from "@pulumi/postgresql";
|
|
13
13
|
*
|
|
14
|
-
* const readOnlyTables = new postgresql.DefaultPrivileges("
|
|
14
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
|
|
15
|
+
* role: "test_role",
|
|
15
16
|
* database: "test_db",
|
|
16
|
-
*
|
|
17
|
+
* schema: "public",
|
|
17
18
|
* owner: "db_owner",
|
|
19
|
+
* objectType: "table",
|
|
18
20
|
* privileges: ["SELECT"],
|
|
19
|
-
* role: "test_role",
|
|
20
|
-
* schema: "public",
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
* <!--End PulumiCodeChooser -->
|
|
@@ -31,8 +31,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
32
|
* import * as postgresql from "@pulumi/postgresql";
|
|
33
33
|
*
|
|
34
|
-
* const revokePublic = new postgresql.DefaultPrivileges("
|
|
35
|
-
* database:
|
|
34
|
+
* const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
|
|
35
|
+
* database: exampleDb.name,
|
|
36
36
|
* role: "public",
|
|
37
37
|
* owner: "object_owner",
|
|
38
38
|
* objectType: "function",
|
package/defaultPrivileg.js
CHANGED
|
@@ -17,13 +17,13 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as postgresql from "@pulumi/postgresql";
|
|
19
19
|
*
|
|
20
|
-
* const readOnlyTables = new postgresql.DefaultPrivileges("
|
|
20
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
|
|
21
|
+
* role: "test_role",
|
|
21
22
|
* database: "test_db",
|
|
22
|
-
*
|
|
23
|
+
* schema: "public",
|
|
23
24
|
* owner: "db_owner",
|
|
25
|
+
* objectType: "table",
|
|
24
26
|
* privileges: ["SELECT"],
|
|
25
|
-
* role: "test_role",
|
|
26
|
-
* schema: "public",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
* <!--End PulumiCodeChooser -->
|
|
@@ -37,8 +37,8 @@ const utilities = require("./utilities");
|
|
|
37
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
38
|
* import * as postgresql from "@pulumi/postgresql";
|
|
39
39
|
*
|
|
40
|
-
* const revokePublic = new postgresql.DefaultPrivileges("
|
|
41
|
-
* database:
|
|
40
|
+
* const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
|
|
41
|
+
* database: exampleDb.name,
|
|
42
42
|
* role: "public",
|
|
43
43
|
* owner: "object_owner",
|
|
44
44
|
* objectType: "function",
|
package/defaultPrivileges.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as postgresql from "@pulumi/postgresql";
|
|
13
13
|
*
|
|
14
|
-
* const readOnlyTables = new postgresql.DefaultPrivileges("
|
|
14
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
|
|
15
|
+
* role: "test_role",
|
|
15
16
|
* database: "test_db",
|
|
16
|
-
*
|
|
17
|
+
* schema: "public",
|
|
17
18
|
* owner: "db_owner",
|
|
19
|
+
* objectType: "table",
|
|
18
20
|
* privileges: ["SELECT"],
|
|
19
|
-
* role: "test_role",
|
|
20
|
-
* schema: "public",
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
23
|
* <!--End PulumiCodeChooser -->
|
|
@@ -31,8 +31,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
31
31
|
* import * as pulumi from "@pulumi/pulumi";
|
|
32
32
|
* import * as postgresql from "@pulumi/postgresql";
|
|
33
33
|
*
|
|
34
|
-
* const revokePublic = new postgresql.DefaultPrivileges("
|
|
35
|
-
* database:
|
|
34
|
+
* const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
|
|
35
|
+
* database: exampleDb.name,
|
|
36
36
|
* role: "public",
|
|
37
37
|
* owner: "object_owner",
|
|
38
38
|
* objectType: "function",
|
package/defaultPrivileges.js
CHANGED
|
@@ -17,13 +17,13 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as postgresql from "@pulumi/postgresql";
|
|
19
19
|
*
|
|
20
|
-
* const readOnlyTables = new postgresql.DefaultPrivileges("
|
|
20
|
+
* const readOnlyTables = new postgresql.DefaultPrivileges("read_only_tables", {
|
|
21
|
+
* role: "test_role",
|
|
21
22
|
* database: "test_db",
|
|
22
|
-
*
|
|
23
|
+
* schema: "public",
|
|
23
24
|
* owner: "db_owner",
|
|
25
|
+
* objectType: "table",
|
|
24
26
|
* privileges: ["SELECT"],
|
|
25
|
-
* role: "test_role",
|
|
26
|
-
* schema: "public",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
* <!--End PulumiCodeChooser -->
|
|
@@ -37,8 +37,8 @@ const utilities = require("./utilities");
|
|
|
37
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
38
38
|
* import * as postgresql from "@pulumi/postgresql";
|
|
39
39
|
*
|
|
40
|
-
* const revokePublic = new postgresql.DefaultPrivileges("
|
|
41
|
-
* database:
|
|
40
|
+
* const revokePublic = new postgresql.DefaultPrivileges("revoke_public", {
|
|
41
|
+
* database: exampleDb.name,
|
|
42
42
|
* role: "public",
|
|
43
43
|
* owner: "object_owner",
|
|
44
44
|
* objectType: "function",
|
package/extension.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as postgresql from "@pulumi/postgresql";
|
|
12
12
|
*
|
|
13
|
-
* const myExtension = new postgresql.Extension("
|
|
13
|
+
* const myExtension = new postgresql.Extension("my_extension", {name: "pg_trgm"});
|
|
14
14
|
* ```
|
|
15
15
|
* <!--End PulumiCodeChooser -->
|
|
16
16
|
*
|
package/extension.js
CHANGED
|
@@ -16,7 +16,7 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as postgresql from "@pulumi/postgresql";
|
|
18
18
|
*
|
|
19
|
-
* const myExtension = new postgresql.Extension("
|
|
19
|
+
* const myExtension = new postgresql.Extension("my_extension", {name: "pg_trgm"});
|
|
20
20
|
* ```
|
|
21
21
|
* <!--End PulumiCodeChooser -->
|
|
22
22
|
*
|
package/function.d.ts
CHANGED
|
@@ -13,17 +13,17 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* import * as postgresql from "@pulumi/postgresql";
|
|
14
14
|
*
|
|
15
15
|
* const increment = new postgresql.Function("increment", {
|
|
16
|
+
* name: "increment",
|
|
16
17
|
* args: [{
|
|
17
18
|
* name: "i",
|
|
18
19
|
* type: "integer",
|
|
19
20
|
* }],
|
|
20
|
-
* body: ` BEGIN
|
|
21
|
-
* RETURN i + 1;
|
|
22
|
-
* END;
|
|
23
|
-
*
|
|
24
|
-
* `,
|
|
25
|
-
* language: "plpgsql",
|
|
26
21
|
* returns: "integer",
|
|
22
|
+
* language: "plpgsql",
|
|
23
|
+
* body: `BEGIN
|
|
24
|
+
* RETURN i + 1;
|
|
25
|
+
* END;
|
|
26
|
+
* `,
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
29
|
* <!--End PulumiCodeChooser -->
|
package/function.js
CHANGED
|
@@ -17,17 +17,17 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as postgresql from "@pulumi/postgresql";
|
|
18
18
|
*
|
|
19
19
|
* const increment = new postgresql.Function("increment", {
|
|
20
|
+
* name: "increment",
|
|
20
21
|
* args: [{
|
|
21
22
|
* name: "i",
|
|
22
23
|
* type: "integer",
|
|
23
24
|
* }],
|
|
24
|
-
* body: ` BEGIN
|
|
25
|
-
* RETURN i + 1;
|
|
26
|
-
* END;
|
|
27
|
-
*
|
|
28
|
-
* `,
|
|
29
|
-
* language: "plpgsql",
|
|
30
25
|
* returns: "integer",
|
|
26
|
+
* language: "plpgsql",
|
|
27
|
+
* body: `BEGIN
|
|
28
|
+
* RETURN i + 1;
|
|
29
|
+
* END;
|
|
30
|
+
* `,
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
33
|
* <!--End PulumiCodeChooser -->
|
package/grant.d.ts
CHANGED
|
@@ -15,32 +15,32 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
15
|
* import * as postgresql from "@pulumi/postgresql";
|
|
16
16
|
*
|
|
17
17
|
* // Grant SELECT privileges on 2 tables
|
|
18
|
-
* const readonlyTables = new postgresql.Grant("
|
|
18
|
+
* const readonlyTables = new postgresql.Grant("readonly_tables", {
|
|
19
19
|
* database: "test_db",
|
|
20
|
+
* role: "test_role",
|
|
21
|
+
* schema: "public",
|
|
20
22
|
* objectType: "table",
|
|
21
23
|
* objects: [
|
|
22
24
|
* "table1",
|
|
23
25
|
* "table2",
|
|
24
26
|
* ],
|
|
25
27
|
* privileges: ["SELECT"],
|
|
26
|
-
* role: "test_role",
|
|
27
|
-
* schema: "public",
|
|
28
28
|
* });
|
|
29
29
|
* // Grant SELECT & INSERT privileges on 2 columns in 1 table
|
|
30
|
-
* const readInsertColumn = new postgresql.Grant("
|
|
30
|
+
* const readInsertColumn = new postgresql.Grant("read_insert_column", {
|
|
31
|
+
* database: "test_db",
|
|
32
|
+
* role: "test_role",
|
|
33
|
+
* schema: "public",
|
|
34
|
+
* objectType: "column",
|
|
35
|
+
* objects: ["table1"],
|
|
31
36
|
* columns: [
|
|
32
37
|
* "col1",
|
|
33
38
|
* "col2",
|
|
34
39
|
* ],
|
|
35
|
-
* database: "test_db",
|
|
36
|
-
* objectType: "column",
|
|
37
|
-
* objects: ["table1"],
|
|
38
40
|
* privileges: [
|
|
39
41
|
* "UPDATE",
|
|
40
42
|
* "INSERT",
|
|
41
43
|
* ],
|
|
42
|
-
* role: "test_role",
|
|
43
|
-
* schema: "public",
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
* <!--End PulumiCodeChooser -->
|
|
@@ -54,12 +54,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
54
54
|
* import * as pulumi from "@pulumi/pulumi";
|
|
55
55
|
* import * as postgresql from "@pulumi/postgresql";
|
|
56
56
|
*
|
|
57
|
-
* const revokePublic = new postgresql.Grant("
|
|
57
|
+
* const revokePublic = new postgresql.Grant("revoke_public", {
|
|
58
58
|
* database: "test_db",
|
|
59
|
-
* objectType: "schema",
|
|
60
|
-
* privileges: [],
|
|
61
59
|
* role: "public",
|
|
62
60
|
* schema: "public",
|
|
61
|
+
* objectType: "schema",
|
|
62
|
+
* privileges: [],
|
|
63
63
|
* });
|
|
64
64
|
* ```
|
|
65
65
|
* <!--End PulumiCodeChooser -->
|
package/grant.js
CHANGED
|
@@ -21,32 +21,32 @@ const utilities = require("./utilities");
|
|
|
21
21
|
* import * as postgresql from "@pulumi/postgresql";
|
|
22
22
|
*
|
|
23
23
|
* // Grant SELECT privileges on 2 tables
|
|
24
|
-
* const readonlyTables = new postgresql.Grant("
|
|
24
|
+
* const readonlyTables = new postgresql.Grant("readonly_tables", {
|
|
25
25
|
* database: "test_db",
|
|
26
|
+
* role: "test_role",
|
|
27
|
+
* schema: "public",
|
|
26
28
|
* objectType: "table",
|
|
27
29
|
* objects: [
|
|
28
30
|
* "table1",
|
|
29
31
|
* "table2",
|
|
30
32
|
* ],
|
|
31
33
|
* privileges: ["SELECT"],
|
|
32
|
-
* role: "test_role",
|
|
33
|
-
* schema: "public",
|
|
34
34
|
* });
|
|
35
35
|
* // Grant SELECT & INSERT privileges on 2 columns in 1 table
|
|
36
|
-
* const readInsertColumn = new postgresql.Grant("
|
|
36
|
+
* const readInsertColumn = new postgresql.Grant("read_insert_column", {
|
|
37
|
+
* database: "test_db",
|
|
38
|
+
* role: "test_role",
|
|
39
|
+
* schema: "public",
|
|
40
|
+
* objectType: "column",
|
|
41
|
+
* objects: ["table1"],
|
|
37
42
|
* columns: [
|
|
38
43
|
* "col1",
|
|
39
44
|
* "col2",
|
|
40
45
|
* ],
|
|
41
|
-
* database: "test_db",
|
|
42
|
-
* objectType: "column",
|
|
43
|
-
* objects: ["table1"],
|
|
44
46
|
* privileges: [
|
|
45
47
|
* "UPDATE",
|
|
46
48
|
* "INSERT",
|
|
47
49
|
* ],
|
|
48
|
-
* role: "test_role",
|
|
49
|
-
* schema: "public",
|
|
50
50
|
* });
|
|
51
51
|
* ```
|
|
52
52
|
* <!--End PulumiCodeChooser -->
|
|
@@ -60,12 +60,12 @@ const utilities = require("./utilities");
|
|
|
60
60
|
* import * as pulumi from "@pulumi/pulumi";
|
|
61
61
|
* import * as postgresql from "@pulumi/postgresql";
|
|
62
62
|
*
|
|
63
|
-
* const revokePublic = new postgresql.Grant("
|
|
63
|
+
* const revokePublic = new postgresql.Grant("revoke_public", {
|
|
64
64
|
* database: "test_db",
|
|
65
|
-
* objectType: "schema",
|
|
66
|
-
* privileges: [],
|
|
67
65
|
* role: "public",
|
|
68
66
|
* schema: "public",
|
|
67
|
+
* objectType: "schema",
|
|
68
|
+
* privileges: [],
|
|
69
69
|
* });
|
|
70
70
|
* ```
|
|
71
71
|
* <!--End PulumiCodeChooser -->
|
package/grantRole.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
13
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
14
14
|
* import * as postgresql from "@pulumi/postgresql";
|
|
15
15
|
*
|
|
16
|
-
* const grantRoot = new postgresql.GrantRole("
|
|
17
|
-
* grantRole: "application",
|
|
16
|
+
* const grantRoot = new postgresql.GrantRole("grant_root", {
|
|
18
17
|
* role: "root",
|
|
18
|
+
* grantRole: "application",
|
|
19
19
|
* withAdminOption: true,
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
@@ -27,8 +27,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* import * as pulumi from "@pulumi/pulumi";
|
|
28
28
|
* import * as postgresql from "@pulumi/postgresql";
|
|
29
29
|
*
|
|
30
|
-
* const bob = new postgresql.Role("bob", {});
|
|
31
|
-
* const bobAdmin = new postgresql.GrantRole("
|
|
30
|
+
* const bob = new postgresql.Role("bob", {name: "bob"});
|
|
31
|
+
* const bobAdmin = new postgresql.GrantRole("bob_admin", {
|
|
32
32
|
* role: "bob",
|
|
33
33
|
* grantRole: "admin",
|
|
34
34
|
* });
|
package/grantRole.js
CHANGED
|
@@ -19,9 +19,9 @@ const utilities = require("./utilities");
|
|
|
19
19
|
* import * as pulumi from "@pulumi/pulumi";
|
|
20
20
|
* import * as postgresql from "@pulumi/postgresql";
|
|
21
21
|
*
|
|
22
|
-
* const grantRoot = new postgresql.GrantRole("
|
|
23
|
-
* grantRole: "application",
|
|
22
|
+
* const grantRoot = new postgresql.GrantRole("grant_root", {
|
|
24
23
|
* role: "root",
|
|
24
|
+
* grantRole: "application",
|
|
25
25
|
* withAdminOption: true,
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
@@ -33,8 +33,8 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* import * as pulumi from "@pulumi/pulumi";
|
|
34
34
|
* import * as postgresql from "@pulumi/postgresql";
|
|
35
35
|
*
|
|
36
|
-
* const bob = new postgresql.Role("bob", {});
|
|
37
|
-
* const bobAdmin = new postgresql.GrantRole("
|
|
36
|
+
* const bob = new postgresql.Role("bob", {name: "bob"});
|
|
37
|
+
* const bobAdmin = new postgresql.GrantRole("bob_admin", {
|
|
38
38
|
* role: "bob",
|
|
39
39
|
* grantRole: "admin",
|
|
40
40
|
* });
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as pulumi from "@pulumi/pulumi";
|
|
12
12
|
* import * as postgresql from "@pulumi/postgresql";
|
|
13
13
|
*
|
|
14
|
-
* const mySlot = new postgresql.PhysicalReplicationSlot("
|
|
14
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {name: "my_slot"});
|
|
15
15
|
* ```
|
|
16
16
|
* <!--End PulumiCodeChooser -->
|
|
17
17
|
*/
|
|
@@ -17,7 +17,7 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as pulumi from "@pulumi/pulumi";
|
|
18
18
|
* import * as postgresql from "@pulumi/postgresql";
|
|
19
19
|
*
|
|
20
|
-
* const mySlot = new postgresql.PhysicalReplicationSlot("
|
|
20
|
+
* const mySlot = new postgresql.PhysicalReplicationSlot("my_slot", {name: "my_slot"});
|
|
21
21
|
* ```
|
|
22
22
|
* <!--End PulumiCodeChooser -->
|
|
23
23
|
*/
|
package/publication.d.ts
CHANGED
|
@@ -10,10 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as postgresql from "@pulumi/postgresql";
|
|
12
12
|
*
|
|
13
|
-
* const publication = new postgresql.Publication("publication", {
|
|
14
|
-
* "
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* const publication = new postgresql.Publication("publication", {
|
|
14
|
+
* name: "publication",
|
|
15
|
+
* tables: [
|
|
16
|
+
* "public.test",
|
|
17
|
+
* "another_schema.test",
|
|
18
|
+
* ],
|
|
19
|
+
* });
|
|
17
20
|
* ```
|
|
18
21
|
* <!--End PulumiCodeChooser -->
|
|
19
22
|
*
|
package/publication.js
CHANGED
|
@@ -16,10 +16,13 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as postgresql from "@pulumi/postgresql";
|
|
18
18
|
*
|
|
19
|
-
* const publication = new postgresql.Publication("publication", {
|
|
20
|
-
* "
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* const publication = new postgresql.Publication("publication", {
|
|
20
|
+
* name: "publication",
|
|
21
|
+
* tables: [
|
|
22
|
+
* "public.test",
|
|
23
|
+
* "another_schema.test",
|
|
24
|
+
* ],
|
|
25
|
+
* });
|
|
23
26
|
* ```
|
|
24
27
|
* <!--End PulumiCodeChooser -->
|
|
25
28
|
*
|
package/publication.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../publication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"publication.js","sourceRoot":"","sources":["../publication.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GA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,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA/FL,kCAgGC;AAlFG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
package/replicationSlot.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
11
|
* import * as postgresql from "@pulumi/postgresql";
|
|
12
12
|
*
|
|
13
|
-
* const mySlot = new postgresql.ReplicationSlot("
|
|
13
|
+
* const mySlot = new postgresql.ReplicationSlot("my_slot", {
|
|
14
|
+
* name: "my_slot",
|
|
15
|
+
* plugin: "test_decoding",
|
|
16
|
+
* });
|
|
14
17
|
* ```
|
|
15
18
|
* <!--End PulumiCodeChooser -->
|
|
16
19
|
*/
|
package/replicationSlot.js
CHANGED
|
@@ -16,7 +16,10 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
17
|
* import * as postgresql from "@pulumi/postgresql";
|
|
18
18
|
*
|
|
19
|
-
* const mySlot = new postgresql.ReplicationSlot("
|
|
19
|
+
* const mySlot = new postgresql.ReplicationSlot("my_slot", {
|
|
20
|
+
* name: "my_slot",
|
|
21
|
+
* plugin: "test_decoding",
|
|
22
|
+
* });
|
|
20
23
|
* ```
|
|
21
24
|
* <!--End PulumiCodeChooser -->
|
|
22
25
|
*/
|
package/replicationSlot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replicationSlot.js","sourceRoot":"","sources":["../replicationSlot.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
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IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AApEL,0CAqEC;AAvDG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
|
package/server.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as postgresql from "@pulumi/postgresql";
|
|
11
11
|
*
|
|
12
|
-
* const extPostgresFdw = new postgresql.Extension("
|
|
13
|
-
* const myserverPostgres = new postgresql.Server("
|
|
12
|
+
* const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
|
|
13
|
+
* const myserverPostgres = new postgresql.Server("myserver_postgres", {
|
|
14
14
|
* serverName: "myserver_postgres",
|
|
15
15
|
* fdwName: "postgres_fdw",
|
|
16
16
|
* options: {
|
|
@@ -29,8 +29,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
29
29
|
* import * as pulumi from "@pulumi/pulumi";
|
|
30
30
|
* import * as postgresql from "@pulumi/postgresql";
|
|
31
31
|
*
|
|
32
|
-
* const extFileFdw = new postgresql.Extension("
|
|
33
|
-
* const myserverFile = new postgresql.Server("
|
|
32
|
+
* const extFileFdw = new postgresql.Extension("ext_file_fdw", {name: "file_fdw"});
|
|
33
|
+
* const myserverFile = new postgresql.Server("myserver_file", {
|
|
34
34
|
* serverName: "myserver_file",
|
|
35
35
|
* fdwName: "file_fdw",
|
|
36
36
|
* }, {
|
package/server.js
CHANGED
|
@@ -15,8 +15,8 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as postgresql from "@pulumi/postgresql";
|
|
17
17
|
*
|
|
18
|
-
* const extPostgresFdw = new postgresql.Extension("
|
|
19
|
-
* const myserverPostgres = new postgresql.Server("
|
|
18
|
+
* const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
|
|
19
|
+
* const myserverPostgres = new postgresql.Server("myserver_postgres", {
|
|
20
20
|
* serverName: "myserver_postgres",
|
|
21
21
|
* fdwName: "postgres_fdw",
|
|
22
22
|
* options: {
|
|
@@ -35,8 +35,8 @@ const utilities = require("./utilities");
|
|
|
35
35
|
* import * as pulumi from "@pulumi/pulumi";
|
|
36
36
|
* import * as postgresql from "@pulumi/postgresql";
|
|
37
37
|
*
|
|
38
|
-
* const extFileFdw = new postgresql.Extension("
|
|
39
|
-
* const myserverFile = new postgresql.Server("
|
|
38
|
+
* const extFileFdw = new postgresql.Extension("ext_file_fdw", {name: "file_fdw"});
|
|
39
|
+
* const myserverFile = new postgresql.Server("myserver_file", {
|
|
40
40
|
* serverName: "myserver_file",
|
|
41
41
|
* fdwName: "file_fdw",
|
|
42
42
|
* }, {
|
package/subscription.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
11
11
|
* import * as postgresql from "@pulumi/postgresql";
|
|
12
12
|
*
|
|
13
13
|
* const subscription = new postgresql.Subscription("subscription", {
|
|
14
|
+
* name: "subscription",
|
|
14
15
|
* conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
|
|
15
16
|
* publications: ["publication"],
|
|
16
17
|
* });
|
package/subscription.js
CHANGED
|
@@ -17,6 +17,7 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* import * as postgresql from "@pulumi/postgresql";
|
|
18
18
|
*
|
|
19
19
|
* const subscription = new postgresql.Subscription("subscription", {
|
|
20
|
+
* name: "subscription",
|
|
20
21
|
* conninfo: "host=localhost port=5432 dbname=mydb user=postgres password=postgres",
|
|
21
22
|
* publications: ["publication"],
|
|
22
23
|
* });
|
package/subscription.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../subscription.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../subscription.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,Y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pulumi";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as postgresql from "@pulumi/postgresql";
|
|
11
11
|
*
|
|
12
|
-
* const extPostgresFdw = new postgresql.Extension("
|
|
13
|
-
* const myserverPostgres = new postgresql.Server("
|
|
12
|
+
* const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
|
|
13
|
+
* const myserverPostgres = new postgresql.Server("myserver_postgres", {
|
|
14
14
|
* serverName: "myserver_postgres",
|
|
15
15
|
* fdwName: "postgres_fdw",
|
|
16
16
|
* options: {
|
|
@@ -21,10 +21,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
21
21
|
* }, {
|
|
22
22
|
* dependsOn: [extPostgresFdw],
|
|
23
23
|
* });
|
|
24
|
-
* const
|
|
25
|
-
* const remoteUserMapping = new postgresql.UserMapping("
|
|
24
|
+
* const remote = new postgresql.Role("remote", {name: "remote"});
|
|
25
|
+
* const remoteUserMapping = new postgresql.UserMapping("remote", {
|
|
26
26
|
* serverName: myserverPostgres.serverName,
|
|
27
|
-
* userName:
|
|
27
|
+
* userName: remote.name,
|
|
28
28
|
* options: {
|
|
29
29
|
* user: "admin",
|
|
30
30
|
* password: "pass",
|
package/userMapping.js
CHANGED
|
@@ -15,8 +15,8 @@ const utilities = require("./utilities");
|
|
|
15
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
16
16
|
* import * as postgresql from "@pulumi/postgresql";
|
|
17
17
|
*
|
|
18
|
-
* const extPostgresFdw = new postgresql.Extension("
|
|
19
|
-
* const myserverPostgres = new postgresql.Server("
|
|
18
|
+
* const extPostgresFdw = new postgresql.Extension("ext_postgres_fdw", {name: "postgres_fdw"});
|
|
19
|
+
* const myserverPostgres = new postgresql.Server("myserver_postgres", {
|
|
20
20
|
* serverName: "myserver_postgres",
|
|
21
21
|
* fdwName: "postgres_fdw",
|
|
22
22
|
* options: {
|
|
@@ -27,10 +27,10 @@ const utilities = require("./utilities");
|
|
|
27
27
|
* }, {
|
|
28
28
|
* dependsOn: [extPostgresFdw],
|
|
29
29
|
* });
|
|
30
|
-
* const
|
|
31
|
-
* const remoteUserMapping = new postgresql.UserMapping("
|
|
30
|
+
* const remote = new postgresql.Role("remote", {name: "remote"});
|
|
31
|
+
* const remoteUserMapping = new postgresql.UserMapping("remote", {
|
|
32
32
|
* serverName: myserverPostgres.serverName,
|
|
33
|
-
* userName:
|
|
33
|
+
* userName: remote.name,
|
|
34
34
|
* options: {
|
|
35
35
|
* user: "admin",
|
|
36
36
|
* password: "pass",
|