Skip to content

Commit 5b3a444

Browse files
committed
feat: add executesql to the test suite
1 parent 67230f7 commit 5b3a444

File tree

1 file changed

+10
-0
lines changed
  • examples/gauge/Components/Pages/Test

1 file changed

+10
-0
lines changed

examples/gauge/Components/Pages/Test/Test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ export class TestPage extends DisplayComponent<TestPageProps> {
199199
name: "GetPathPointsAtAirport",
200200
functionCallback: input => this.props.interface.get_path_points_at_airport(input ?? ""),
201201
},
202+
{
203+
index: 26,
204+
arguments: ["sql: string", "params: string[]"],
205+
name: "ExecuteSQLQuery",
206+
functionCallback: (input, inputAlt) =>
207+
this.props.interface.execute_sql(
208+
input ?? "",
209+
inputAlt?.replace("[", "").replace("]", "").replace('"', "").split(",") ?? [],
210+
),
211+
},
202212
]
203213

204214
private readonly input1 = Subject.create("")

0 commit comments

Comments
 (0)