Skip to content

Commit a5e3673

Browse files
committed
Merge remote-tracking branch 'origin/master' into issue-12438
2 parents cacd93b + bc21d53 commit a5e3673

File tree

12 files changed

+89
-19
lines changed

12 files changed

+89
-19
lines changed

components/mysql/actions/execute-raw-query/execute-raw-query.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Execute SQL Query",
66
description: "Execute a custom MySQL query. See [our docs](https://pipedream.com/docs/databases/working-with-sql) to learn more about working with SQL in Pipedream.",
77
type: "action",
8-
version: "2.0.0",
8+
version: "2.0.1",
99
props: {
1010
mysql,
1111
// eslint-disable-next-line pipedream/props-description
@@ -17,8 +17,12 @@ export default {
1717
label: "SQL Query",
1818
},
1919
},
20-
run() {
20+
async run({ $ }) {
2121
const args = this.mysql.executeQueryAdapter(this.sql);
22-
return this.mysql.executeQuery(args);
22+
const data = await this.mysql.executeQuery(args);
23+
$.export("$summary", `Returned ${data.length} ${data.length === 1
24+
? "row"
25+
: "rows"}`);
26+
return data;
2327
},
2428
};

components/mysql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/mysql",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "Pipedream MySQL Components",
55
"main": "mysql.app.mjs",
66
"keywords": [

components/postgresql/actions/execute-custom-query/execute-custom-query.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Execute SQL Query",
55
key: "postgresql-execute-custom-query",
66
description: "Execute a custom PostgreSQL query. See [our docs](https://pipedream.com/docs/databases/working-with-sql) to learn more about working with SQL in Pipedream.",
7-
version: "3.0.0",
7+
version: "3.0.1",
88
type: "action",
99
props: {
1010
postgresql,
@@ -17,8 +17,12 @@ export default {
1717
label: "PostreSQL Query",
1818
},
1919
},
20-
run() {
20+
async run({ $ }) {
2121
const args = this.postgresql.executeQueryAdapter(this.sql);
22-
return this.postgresql.executeQuery(args);
22+
const data = await this.postgresql.executeQuery(args);
23+
$.export("$summary", `Returned ${data.length} ${data.length === 1
24+
? "row"
25+
: "rows"}`);
26+
return data;
2327
},
2428
};

components/postgresql/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/postgresql",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "Pipedream PostgreSQL Components",
55
"main": "postgresql.app.mjs",
66
"keywords": [

components/snowflake/actions/execute-sql-query/execute-sql-query.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import snowflake from "../../snowflake.app.mjs";
22

33
export default {
4-
name: "Execute Query",
5-
version: "0.1.0",
4+
name: "Execute SQL Query",
5+
version: "0.1.1",
66
key: "snowflake-execute-sql-query",
77
description: "Execute a custom Snowflake query. See [our docs](https://pipedream.com/docs/databases/working-with-sql) to learn more about working with SQL in Pipedream.",
88
type: "action",
@@ -17,10 +17,14 @@ export default {
1717
label: "SQL Query",
1818
},
1919
},
20-
run() {
21-
return this.snowflake.collectRows({
20+
async run({ $ }) {
21+
const data = await this.snowflake.collectRows({
2222
sqlText: this.sql.query,
2323
binds: this.sql.params,
2424
});
25+
$.export("$summary", `Returned ${data.length} ${data.length === 1
26+
? "row"
27+
: "rows"}`);
28+
return data;
2529
},
2630
};

components/snowflake/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/snowflake",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "Pipedream Snowflake Components",
55
"main": "snowflake.app.mjs",
66
"keywords": [

components/ticket_source/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/ticket_source",
3+
"version": "0.0.1",
4+
"description": "Pipedream Ticket Source Components",
5+
"main": "ticket_source.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"ticket_source"
9+
],
10+
"homepage": "https://pipedream.com/apps/ticket_source",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "ticket_source",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/unstructured/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/unstructured",
3+
"version": "0.0.1",
4+
"description": "Pipedream Unstructured Components",
5+
"main": "unstructured.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"unstructured"
9+
],
10+
"homepage": "https://pipedream.com/apps/unstructured",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "unstructured",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

0 commit comments

Comments
 (0)