ydb-platform / ydb-go-sdk

Pure Go native and database/sql driver for YDB
https://ydb.tech
Apache License 2.0
132 stars 69 forks source link

Go: Operation service client #1302

Open asmyasnikov opened 2 weeks ago

asmyasnikov commented 2 weeks ago

For example

operations, err := db.Operation().ListOperations(ctx)
for _, op := range operations {
   fmt.Println(op.Info())
   if true {
       op.Cancel(ctx)
   } else {
     op.Forget(ctx)
   }
}