Skip to content
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

Add params/named_params macro, and expose ToSql from top level #471

Merged
merged 1 commit into from
Jan 30, 2019

Conversation

thomcc
Copy link
Member

@thomcc thomcc commented Jan 29, 2019

Nobody asked for named_params!, but it would be nice. It would be nicer if it were supported as the params! macro, but doing that would require a lot more work (see https://github.com/serde-rs/json/blob/master/src/macros.rs, for example).

I've also made some of the examples and tests use this, although not all of them as the intent isn't to deprecate passing these explicitly, just to make doing it more convenient.

Re-exposing ToSql from the top level is done just to make it more obvious. It's a fairly important part of the API, and it feels buried for it to live in rusqlite::types::.

Fixes #462.

@gwenn gwenn merged commit 6e0b1e2 into rusqlite:master Jan 30, 2019
@gwenn
Copy link
Collaborator

gwenn commented Jan 30, 2019

https://github.com/jgallagher/rusqlite/graphs/contributors => third.
Maybe you should ask @jgallagher to become a maintainer ?

@thomcc thomcc deleted the params-macro branch January 30, 2019 18:09
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.

None yet

2 participants