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.
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.
Queries | Models | ORM Gen | Factory Gen | |
---|---|---|---|---|
Postgres | ✅ | ✅ | ✅ | ✅ |
MySQL/MariaDB | ✅ | ✅ | ✅ | ✅ |
SQLite | ✅ | ✅ | ✅ | ✅ |
Atlas | ✅ | ✅ | ||
Prisma | ✅ | ✅ |