Bob: Go SQL Access Toolkit
Links
About
Bob is a set of Go packages and tools to work with SQL databases.
Bob's philosophy centres around the following:
- Correctness: Things should work correctly. Follow specifications as closely as possible.
- Convenience (not magic): Bob provides convenient ways to perform actions, it does not add unexplainable magic, or needless abstraction.
- Cooperation: Bob should work well with other tools and packages as much as possible, especially the standard library.
Bob can be progressively adopted from raw SQL query strings, to fully typed queries with models and factories generated for your database.
Components of Bob
Bob consists of several components that build on each other for the full experience.
- Query Builder
- SQL Executor for convenient scanning of results
- Models for convenient database queries
- Code generation of Models and Factories from your database schema
Check out the documentation for more information.
Support
| Queries | Models | ORM Gen | Factory Gen |
---|
Postgres | ✅ | ✅ | ✅ | ✅ |
MySQL/MariaDB | ✅ | ✅ | ✅ | ✅ |
SQLite | ✅ | ✅ | ✅ | ✅ |
Comparisons
- Bob vs GORM
- Bob vs Ent
- Bob vs SQLBoiler
- Bob vs Jet
Contributing
Thanks to all the people who have contributed to Bob!