ydb-platform / ydb-sdk-projects

Root projects for YDB SDK's
0 stars 0 forks source link

Support resource pool parameter in query requests #13

Open asmyasnikov opened 1 month ago

asmyasnikov commented 1 month ago

Related PR in API protos: https://github.com/ydb-platform/ydb-api-protos/pull/48 Related ticket: https://st.yandex-team.ru/YQ-3444 Related discussion: https://wiki.yandex-team.ru/rtmapreduce/yql-streams-corner/workload-manager-v1/#vybor-pula-ne-aktulanye-varianty

Sub-tasks:

Draft of SDK API (go example):

 row, err := db.Query().QueryRow(ctx,  `SELECT 1`,
  query.WithResourcePool("pool-id"),
 )
polRk commented 1 month ago
await driver.queryClient.do({
  fn: (session) => session.execute({
    text: `SELECT 1;`,
    resourcePool: 'my-pool-id'
  })
});