Skip to content

Commit

Permalink
fix: update protobufjs to the latest version and add dependencies to …
Browse files Browse the repository at this point in the history
…protobufjs in the proto file
  • Loading branch information
Alexey Zorkaltsev committed Oct 15, 2024
1 parent 5f4e9bf commit c7573ec
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/basic-example-v1-with-table-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async function selectPrepared(session: Session, data: ThreeIds[], logger: Logger
'$episodeId': episode.getTypedValue('episodeId')
});
const result = Series.createNativeObjects(resultSets[0]);
logger.info(`Select prepared query ${JSON.stringify(result, null, 2)}`);
logger.info(`Parametrized select query ${JSON.stringify(result, null, 2)}`);
}
}
await withRetries(select);
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-example-v2-with-query-service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async function selectWithParameters(driver: Driver, data: ThreeIds[], logger: Lo
const {value: resultSet} = await resultSets.next();
const {value: row} = await resultSet.rows.next();
await opFinished;
logger.info(`Select prepared query ${JSON.stringify(row, null, 2)}`);
logger.info(`Parametrized select query ${JSON.stringify(row, null, 2)}`);
}
}
});
Expand Down
11 changes: 5 additions & 6 deletions examples/url-shortener/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,17 @@ VALUES ($shortenUrl, $sourceUrl);`;
return shortenUrl;
}


export async function selectSource(
shortenUrl: string,
session: Session,
logger: Logger): Promise<string> {
const query = `
${SYNTAX_V1}
DECLARE $shortenUrl as Utf8;
DECLARE $shortenUrl as Utf8;
SELECT *
FROM ${URLS_TABLE}
WHERE shorten = $shortenUrl;`;
SELECT *
FROM ${URLS_TABLE}
WHERE shorten = $shortenUrl;`;

async function execute() : Promise<string> {
logger.info('Preparing query...');
Expand All @@ -75,7 +74,7 @@ export async function selectSource(
'$shortenUrl': requestSourceUrl.getTypedValue('shorten')
});
const result = UrlsMatch.createNativeObjects(resultSets[0]);
logger.info('Select prepared query', result);
logger.info('Parametrized select query', result);
if (result.length == 0) {
return '';
} else {
Expand Down
22 changes: 14 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"reflect-metadata": "^0.1.13",
"typed-emitter": "^2.1.0",
"uuid": "^8.3.2",
"ydb-sdk-proto": "^1.1.0"
"ydb-sdk-proto": "^1.2.5"
},
"devDependencies": {
"@commitlint/cli": "^17.6.1",
Expand Down
1 change: 0 additions & 1 deletion src/topic/topic-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export type ICreateReaderArgs = {
}[];
consumer?: (string|null);
readerName?: (string|null);

}
export type ICommitOffsetArgs = {
path: (string|null);
Expand Down

0 comments on commit c7573ec

Please sign in to comment.