Skip to content

Commit dfa6436

Browse files
committed
fix query templates
1 parent 17dbc1b commit dfa6436

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/containers/Tenant/utils/schemaQueryTemplates.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,17 @@ export const createTransferTemplate = () => {
8282
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create-transfer
8383
CREATE OBJECT secret_name (TYPE SECRET) WITH value="secret_value";
8484
85-
$l = ($x) -> {
85+
\\$l = (\\$x) -> {
8686
return [
8787
<|
88-
offset:$x._offset,
89-
message:$x._data
88+
offset:\\$x._offset,
89+
message:\\$x._data
9090
|>
9191
];
9292
};
9393
9494
CREATE TRANSFER my_transfer
95-
FROM \${1:<original_topic>} TO \${2:target_table} USING $l
95+
FROM \${1:<original_topic>} TO \${2:<target_table>} USING \\$l
9696
WITH (
9797
CONNECTION_STRING="\${3:grpcs://mydb.ydb.tech:2135/?database=/remote_database}",
9898
TOKEN_SECRET_NAME = "secret_name"
@@ -285,17 +285,17 @@ export const alterTransferTemplate = (params?: SchemaQueryParams) => {
285285
: '${1:<my_transfer>}';
286286
return `-- docs: https://ydb.tech/docs/en/yql/reference/syntax/alter-transfer
287287
288-
$l = ($x) -> {
288+
\\$l = (\\$x) -> {
289289
return [
290290
<|
291-
offset:$x._offset,
292-
message:$x._data
291+
offset:\\$x._offset,
292+
message:\\$x._data
293293
|>
294294
];
295295
};
296296
297297
ALTER TRANSFER ${path}
298-
SET USING $l;`;
298+
SET USING \\$l;`;
299299
};
300300

301301
export const addTableIndex = (params?: SchemaQueryParams) => {

0 commit comments

Comments
 (0)