Skip to content

What's the correct way to get owned data out of the db #18

Closed
@teamplayer3

Description

@teamplayer3

I try to get owned data from my db:

let player: schema::Player = txn.query_one(schema::Player::unique(player_id))
                .map(|row| row.into() ???? row.into_owned() ???? )

How to do this? Do I have to create a new user struct and map the resulting row somehow on to this struct? Is it possible to reuse the schema, def to return an owned player data? Do I have to use the dummy data type?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions