Go favors simplicity, and it's pretty common to work with a database via driver directly without any ORM. It provides great control and efficiency in your queries, but here is a problem: you need to manually iterate over database rows and scan data from all columns into a corresponding destination. It can be error-prone verbose and just tedious. scany aims to solve this problem. It allows developers to scan complex data from a database into Go structs and other composite types with just one function call and doesn't bother with row iteration.
Features
- Automatic mapping of SQL rows to Go structs
- Support for nested structs and complex data types
- Compatibility with standard Go database drivers
- Customizable field mapping using struct tags
- Error handling and validation during data mapping
- Minimal dependencies for lightweight performance
Categories
DatabaseLicense
MIT LicenseFollow Scany
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Scany!