feat: Support For Proto Column in Spanner#1829
Conversation
Changes need to be reverted.
-Adding Logic for Serialization & Deserialization -New Type Codes and utilities
|
Here is the summary of changes. You are about to add 6 region tags.
This comment is generated by snippet-bot.
|
skuruppu
left a comment
There was a problem hiding this comment.
I only ended up reviewing the src/ files for now. Once we discuss the comments, I'm happy to look into tests and samples.
src/codec.ts
Outdated
| ).finish(); | ||
| } else { | ||
| throw new GoogleError(`protoMessageParams cannot be used for constructing ProtoMessage. | ||
| Please pass serializedBytes as value or message object with messageFunction`); |
There was a problem hiding this comment.
I don't know what serializedBytes is. Is it a type?
There was a problem hiding this comment.
By serializedBytes I meant serialized buffer of the proto message. Thank you for flagging it out, updating the exception message.
protoMessageParams cannot be used to construct the ProtoMessage. Pass the serialized buffer of the proto-message as the value or provide the message object along with the corresponding messageFunction generated by protobufjs-cli.
* feat: Support For Proto Column in Spanner (#1829) * feat: Generated Proto Changes Changes need to be reverted. * feat: Implementation for Proto Message & Enum -Adding Logic for Serialization & Deserialization -New Type Codes and utilities * feat: Proto static files and typings and generated descriptors * sample: Adding DML, DQL, DML, table insert & read samples. * style: Lint * test: Adding unit tests * refactor: minor refactoring * refactor: minor refactoring * test: Adding integration tests * docs: Adding docs * test: Adding sample Integration Tests * refactor: Minor refactoring and updating comments/docs. * test: Making test fixes * refactor: Minor refactoring and lint fixes * refactor: Minor refactoring and lint fixes * Updating docs and minor changes. * test: fixing test * refactor: minor changes * refactor: minor refactoring * docs: Updating docs & comments * feat(spanner): fix lint * fix(spanner: lint * fix(spanner): lint * fix(spanner): lint * fix(spanner): lint * feat(spanner): fix db name * feat(spanner): remove it.only * feat(spanner): fix tests lint * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(spanner): remove samples and sample tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(spanner): update schema to avoid reserved keyword * feat(spanner): add samples and sample tests * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat(spanner): code refactoring --------- Co-authored-by: Gaurav Purohit <purohitgaurav0612@gmail.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
PR Includes