Skip to content

Queryable is not implemented for all Value variants #334

@jquesada2016

Description

@jquesada2016

Describe the bug
A clear and concise description of what the bug is.

Please implement Queryable for all Value variants. In my particular case, Value::Bytes(_) does not have Queryable implemented for it, and for many other variants as well.
 
Reproduction

#[derive(Queryable)]
struct SomeStruct {
  data: Bytes, // Error, Bytes implements QueryArg, but not Queryable
}

Expected behavior
A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem.

I expect all values that can go into a query should be able to come out as a result. Value itself also does not have Queryable implemented, only QueryResult, so you can't use Value as a field of a struct to work around this issue. The only workaround I can think of is to return the data in JSON and parse it out the other side, which works, but is far from ideal.

Versions (please complete the following information):

  • OS:
  • EdgeDB version:
  • EdgeDB CLI version:
  • Rust compiler version:
  • Cargo version:
  • EdgeDB Rust versions: 0.6.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions