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

Addition of debug formatting support to rusqlite types #572

Closed
visceralfield opened this issue Oct 2, 2019 · 3 comments · Fixed by #1238
Closed

Addition of debug formatting support to rusqlite types #572

visceralfield opened this issue Oct 2, 2019 · 3 comments · Fixed by #1238

Comments

@visceralfield
Copy link

I think this could be useful for debugging purposes -- I am interested to hear others' opinions. I have not attempted implementing this yet, I don't know how many types could just be derived and how many would require actual code. If there is interest, I may start a branch.

@gwenn
Copy link
Collaborator

gwenn commented Oct 3, 2019

Do you mean:

pub trait FromSql: Sized+Debug {
...
}

pub trait ToSql: Debug {
...
}

Or

impl Debug for Backup {
...
}
impl Debug for ... {
...
}

?

@visceralfield
Copy link
Author

The second was my intention.

@ghost
Copy link

ghost commented Dec 9, 2019

It would be great if Rows for example could simply be viewed with dbg!() or printed out.

@ghost ghost mentioned this issue Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants