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

Return a different type #142

Open
sofasurfa opened this issue Aug 16, 2024 · 1 comment
Open

Return a different type #142

sofasurfa opened this issue Aug 16, 2024 · 1 comment

Comments

@sofasurfa
Copy link

To help with debugging please provide your code with all relevant information to scany.
The code should contain:

  • The definition of the types that you pass to scany library.
  • Your SQL query.
  • How you call scany API.

Example of the code you could provide to aid debugging:

type User struct {
    Name string
}

sqlQuery := "SELECT name from users"

var users []*User
err := pgxscan.Select(ctx, db, &users, sqlQuery) 
@georgysavva
Copy link
Owner

georgysavva commented Aug 18, 2024

Hi, can you please provide a description of your issue?

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

No branches or pull requests

2 participants