-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Labels
Description
Next code must be worked:
params := ydb.ParamsBuilder().
Param("$param"). Json(`
{
"a": 1,
"b": "B"
}
`).Build()
Variable params
can be used in
err := db.Table().Do(ctx, func(ctx, s) error) {
res, tx, err := s.Execute(ctx, txControl, `
-- DECLARE $param AS Json;
SELECT $param;
`, params)
. . .
})
See ydb.Builder().Param("$name").List()
as example