Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ensure all ways of passing Set and Map are implemented: #127

Copy link
Copy link
Open
@adespawn

Description

@adespawn
Issue body actions

See:

case rust.CqlType.Set:
// TODO:
// This is part of the datastax logic for encoding set.
// Here, this way of providing set is not supported.
/* if (
this.encodingOptions.set &&
value instanceof this.encodingOptions.set
) {
const arr = [];
value.forEach(function (x) {
arr.push(x);
});
return this.encodeList(arr, subtype);
} */
let encodedSet = encodeListLike(value, type.getSupportType(1));
return rust.QueryParameterWrapper.fromSet(encodedSet);

and:
case rust.CqlType.Map:
// TODO:
// This is part of the datastax logic for encoding map.
// Here, this way of providing map is not supported.
/* if (
this.encodingOptions.map &&
value instanceof this.encodingOptions.map
) {
// Use Map#forEach() method to iterate
value.forEach(addItem);
} */
let encodedMap = encodeMap(value, type);
return rust.QueryParameterWrapper.fromMap(encodedMap);

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4Very low priority - do it only after all other thingsVery low priority - do it only after all other thingsTypesCustom types used by the databaseCustom types used by the database

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.