MySqlValueRef: why format, as_bytes, as_str functions are declared with pub(crate) and not simply pub? #3446
Replies: 1 comment
-
I found another way to do it. let value: &str = row.get_unchecked(c.ordinal()); So, I'll close this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I noticed that there is a difference between
MySqlValueRef
andPgValueRef
implementations.In
PgValueRef
, the functionsformat
,as_bytes
,as_str
are simply declared withpub
but inMySqlValueRef
withpub(crate)
, thus are not accessible outside the crate.I have the following code:
I would like to do the same for MySql (also SQLite). Is it possible?
Can we make a change to the code? I can provide a PR in that case.
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions