Ydb-go-sdk codegen: Containers support in ydb.ParamsBuilder()#15
Ydb-go-sdk codegen: Containers support in ydb.ParamsBuilder()#151NepuNep1 merged 5 commits intoydb-platform:ydbfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds list support for YDB engine in sqlc, extending parameter handling and type conversion capabilities.
- Enhanced YDB parameter handling for list/array types with new builder methods and template logic
- Added type conversion support for YDB composite types (list, tuple, struct, variant)
- Refactored code generation to handle complex container types that require manual parameter passing
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/sql/rewrite/parameters.go | Adds YDB-specific parameter replacement logic |
| internal/engine/ydb/convert.go | Implements YDB type conversion for lists, tuples, and other composite types |
| internal/codegen/golang/ydb_type.go | Updates array type handling for YDB columns |
| internal/codegen/golang/templates/ydb-go-sdk/queryCode.tmpl | Modifies templates to support complex container parameters |
| internal/codegen/golang/query.go | Adds new methods for YDB parameter building and complex type detection |
| examples/authors/ydb/query.sql.go | Shows updated generated code with new parameter builder pattern |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
* Added Arrays support + rewrites some internal logic to handle sqlc.arg/narg/slice in ydb
* Supported containertype named parameters
* Rewrited params to handle compex types and comment if type is interface{}
* Added Arrays support + rewrites some internal logic to handle sqlc.arg/narg/slice in ydb
* Supported containertype named parameters
* Rewrited params to handle compex types and comment if type is interface{}
Related to #4