ydb-rs-sdk icon indicating copy to clipboard operation
ydb-rs-sdk copied to clipboard

dev: usage option type for Value::list_from with example value

Open sshaplygin opened this issue 3 months ago • 1 comments

Impact Assessment

How would this change affect:

  • [ ] Performance
  • [ ] Maintainability
  • [ ] Backward compatibility
  • [x] User experience

Area of Improvement

I need example how to use option type for Value::list_from with example value. The examples have case how to use list value, but haven't use option values

Current Situation

Suggested Improvement

Add new example case with optional usege

sshaplygin avatar Aug 20 '25 23:08 sshaplygin

I patched sdk at the local version and used next row:

Value::optional_from(Value::Text("".to_string()), Some(Value::Text("test".to_string()))).unwrap(),

is it common way?

sshaplygin avatar Aug 21 '25 00:08 sshaplygin