ydb-go-sdk
ydb-go-sdk copied to clipboard
query params builder types
- [x] Interval (see implementation)
- [x] Datetime (see implementation)
- [x] Date (see implementation)
- [x] Timestamp (see implementation)
- [x] Decimal (see implementation)
- [x] Float (see implementation)
- [x] Double (see implementation)
- [x] Int8 (see implementation)
- [x] Uint8 (see implementation)
- [x] Int16 (see implementation)
- [x] Uint16 (see implementation)
- [x] Int32 (see implementation)
- [x] Uint32 (see implementation)
- [x] Int64 (see implementation)
- [x] Uint64 (see implementation)
- [x] Bool (see implementation)
- [x] Bytes (see implementation)
- [x] Text (see implementation)
- [x] Optional (see implementation)
- [x] List (see implementation)
- [x] #1061
- [x] #1060
- [x] #1059
- [x] #1063
- [x] #1073
- [x] #1064
- [x] #1065
- [x] #1066
- [x] #1067
- [x] #1068
- [x] #1072
- [x] #1071
- [x] #1070
- [x] #1069
- [ ] #1273
- [ ] #1274
- [ ] #1275
- [ ] #1276
- [ ] #1277
Next code must be worked:
params := ydb.ParamsBuilder().Param("$param").NewTypeFromPR()./*additional sub-calls*/
Build()
Variable params
can be used in
err := db.Table().Do(ctx, func(ctx, s) error) {
res, tx, err := s.Execute(ctx, txControl, `
SELECT $param;
`, params)
. . .
})