Skip to content

mysql: make pub: MySqlValueRef::format/as_bytes/as_str() #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025

Conversation

kakserpom
Copy link

I need these methods to be public (well, actually I only need as_bytes) in order to implement custom JSON deserialization. The Postgres driver already allows to get raw values.

@lovasoa lovasoa merged commit 2b0ec0d into sqlpage:main Jun 23, 2025
63 checks passed
@lovasoa
Copy link
Collaborator

lovasoa commented Jun 23, 2025

No problem, happy to make these public; Thanks for the pr!

@lovasoa
Copy link
Collaborator

lovasoa commented Jun 23, 2025

Just to understand your usage better: what do you need these methods for ? Do we have some Decode<Mysql> implementations missing ?

@kakserpom
Copy link
Author

kakserpom commented Jun 23, 2025

@lovasoa https://github.com/kakserpom/php-sqlx-rs/blob/master/src/mysql/conversion.rs#L73: SIMD json decoding and lazy json decoding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants