github.com/kisielk/sqlstruct
Package sqlstruct provides some convenience functions for using structs with the Go standard library's database/sql package. The package matches struct field names to SQL query column names. A field can also specify a matching column with "sql" tag, if it's different from field name. Unexported fields or fields marked with `sql:"-"` are ignored, just like with "encoding/json" package. For example: Aliased tables in a SQL statement may be scanned into a specific structure identified by the same alias, using the ColumnsAliased and ScanAliased functions:
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
almost 5 years ago
v0.0.0-20210630145711-dae28ed37023
almost 5 years ago
Versions
3
3
Dependent Packages
167
167
Dependent Repos
1,096
1,096
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/kisielk/sqlstruct
spec |
| License | MIT |
| Namespace | github.com/kisielk |
| First Release | over 10 years ago |
| Last Synced | about 10 hours ago |
Repository
| Stars | 167 on GitHub |
| Forks | 52 on GitHub |
| Docker Dependents | 78 |
| Docker Downloads | 132,690,251 |
Rankings on proxy.golang.org
Overall
Top 1.6%
Dependent packages
Top 0.3%
Dependent repos
Top 0.2%
Forks
Top 3.4%
Docker downloads
Top 0.2%