triangle-utils 1.4.136 → 1.4.138
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/dist/src/UtilsRDS.js +4 -1
- package/dist/src/f.js +2 -1
- package/package.json +1 -1
- package/src/UtilsRDS.ts +3 -1
- package/src/f.ts +4 -1
package/dist/src/UtilsRDS.js
CHANGED
|
@@ -30,6 +30,9 @@ function convert_rds_output(input) {
|
|
|
30
30
|
else if (input.stringValue !== undefined) {
|
|
31
31
|
return input.stringValue;
|
|
32
32
|
}
|
|
33
|
+
else if (input.doubleValue !== undefined) {
|
|
34
|
+
return input.doubleValue;
|
|
35
|
+
}
|
|
33
36
|
else if (input.longValue !== undefined) {
|
|
34
37
|
return input.longValue;
|
|
35
38
|
}
|
|
@@ -95,7 +98,7 @@ export class UtilsRDS {
|
|
|
95
98
|
includeResultMetadata: true
|
|
96
99
|
})
|
|
97
100
|
// .then(response => {
|
|
98
|
-
// console.log(response)
|
|
101
|
+
// console.log(JSON.stringify(response, undefined, 4))
|
|
99
102
|
// return response
|
|
100
103
|
// })
|
|
101
104
|
.then(response => (response.records || [])
|
package/dist/src/f.js
CHANGED
|
@@ -73,4 +73,5 @@ const utils = new TriangleUtils(config);
|
|
|
73
73
|
// name : "2026 Election in North Dakota",
|
|
74
74
|
// target_ids : ["TURNOUT-2026-11-03"]
|
|
75
75
|
// }, { is_verbose : true }))
|
|
76
|
-
// console.log(await utils.rds.exec("SELECT * FROM prisms", { is_verbose : true }))
|
|
76
|
+
// console.log(await utils.rds.exec("SELECT * FROM prisms", { is_verbose : true }))\
|
|
77
|
+
console.log(await utils.rds.exec("SELECT * FROM state_voter_targets WHERE state_id = 'ND' AND voter_id = '187195'"));
|
package/package.json
CHANGED
package/src/UtilsRDS.ts
CHANGED
|
@@ -25,6 +25,8 @@ function convert_rds_output(input : Field) {
|
|
|
25
25
|
return undefined
|
|
26
26
|
} else if (input.stringValue !== undefined) {
|
|
27
27
|
return input.stringValue
|
|
28
|
+
} else if (input.doubleValue !== undefined) {
|
|
29
|
+
return input.doubleValue
|
|
28
30
|
} else if (input.longValue !== undefined) {
|
|
29
31
|
return input.longValue
|
|
30
32
|
} else if (input.booleanValue !== undefined) {
|
|
@@ -114,7 +116,7 @@ export class UtilsRDS {
|
|
|
114
116
|
includeResultMetadata : true
|
|
115
117
|
})
|
|
116
118
|
// .then(response => {
|
|
117
|
-
// console.log(response)
|
|
119
|
+
// console.log(JSON.stringify(response, undefined, 4))
|
|
118
120
|
// return response
|
|
119
121
|
// })
|
|
120
122
|
.then(response => (response.records || [])
|
package/src/f.ts
CHANGED
|
@@ -91,4 +91,7 @@ const utils = new TriangleUtils(config)
|
|
|
91
91
|
// target_ids : ["TURNOUT-2026-11-03"]
|
|
92
92
|
// }, { is_verbose : true }))
|
|
93
93
|
|
|
94
|
-
// console.log(await utils.rds.exec("SELECT * FROM prisms", { is_verbose : true }))
|
|
94
|
+
// console.log(await utils.rds.exec("SELECT * FROM prisms", { is_verbose : true }))\
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
console.log(await utils.rds.exec("SELECT * FROM state_voter_targets WHERE state_id = 'ND' AND voter_id = '187195'"))
|