-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ScanType in ColumnType.
The ColumnType.ScanType() function returns information about the type which is expected to be passed to the Rows.Scan() function for the corresponding column. Without this commit go-txdb will claim everything should be an interface{} which, while not exactly wrong, is not particularly helpful. I've also added a quick test to the PostgreSQL suite since that's where I'm thinking about using this library, but AFAIK this should also be effective for MySQL.
- Loading branch information
Evan Nemerson
committed
Aug 13, 2022
1 parent
0e9ad8c
commit 10aa843
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters