sirius-tedarik / sirutils

MIT License
0 stars 2 forks source link

Transformation is missing (@sirutils/driver-scylla) #16

Closed siaeyy closed 6 days ago

siaeyy commented 1 week ago

There is no transform process to response data in non-cache query execution.

// src/utils/driver.ts #25
...
if (!options.cache) {
  return Lazy.from(async () => {
    const query = context.api.query(texts, ...values)

    const result = proxy(
      await context.api.$client.execute(query.text, query.values, {
        prepare: true,
      }),
      driverScyllaTags.resultSet,
      true
    )
    // must be tranformation process call in here
    return result.rows as T[]
  })
}
...

@giveerr

siaeyy commented 6 days ago

Problem is solved in development branch.