github.com/adlio/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: SELECT %s, %s FROM users AS u INNER JOIN address AS a ON a.id = u.address_id WHERE u.username = ? `
proxy.golang.org
v0.0.0-20160626163818-ceebd15a50b4
over 9 years ago
1
Past Dependents
Check this option to include packages that no longer depend on this package in their latest version but previously did.
Filter
Filter by Kind
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/adlio/sqlstruct
spec |
| License | MIT |
| Namespace | github.com/adlio |
| First Release | over 9 years ago |
| Last Synced | 9 days ago |
Repository
| Stars | 0 on GitHub |
| Forks | 0 on GitHub |