Skip to content

Query methods that accept byte slices (not just str) #194

@glittershark

Description

@glittershark

Oddly enough, it appears that MySQL is perfectly happy to accept queries that include invalid utf8 (eg for literals for blobs) - unfortunately, it's currently impossible to make those queries using mysql_async, since the query methods all accept &str. Would you be willing to accept a patch to add equivalent methods to query and prepare that accept &[u8] as well? Maybe query_bytes and prepare_bytes?

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