• Stars
    star
    717
  • Rank 63,167 (Top 2 %)
  • Language
    Go
  • License
    MIT License
  • Created over 2 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

SQL query builder and ORM/Factory generator for Go with support for PostgreSQL, MySQL and SQLite

Bob: Go SQL Access Toolkit

Test Status GitHub go.mod Go version Go Reference Go Report Card GitHub tag (latest SemVer) Coverage Status

Links

About

Bob is a set of Go packages and tools to work with SQL databases.

Bob's philosophy centres around the following:

  1. Correctness: Things should work correctly. Follow specifications as closely as possible.
  2. Convenience (not magic): Bob provides convenient ways to perform actions, it does not add unexplainable magic, or needless abstraction.
  3. 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.

  1. Query Builder
  2. SQL Executor for convenient scanning of results
  3. Models for convenient database queries
  4. 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 βœ… βœ… βœ… βœ…
Atlas βœ… βœ…
Prisma βœ… βœ…

Comparisons

  1. Bob vs GORM
  2. Bob vs Ent
  3. Bob vs SQLBoiler
  4. Bob vs Jet

More Repositories

1

orchestra

Orchestra is a library to manage long running go processes.
Go
152
star
2

goldmark-pdf

A PDF renderer for the goldmark markdown parser.
Go
117
star
3

nginx-proxy-load-balancer

Complete proxy with much simpler configuration
Go
106
star
4

scan

Scan provides the ability to to scan sql rows directly to any defined structure.
Go
69
star
5

laravel-2fa-starter

A laravel application with 2fa added to the registration and login flows
PHP
57
star
6

kronika

Kronika adds some extra utility around the standard time package. It does not have any other external dependencies.
Go
36
star
7

adonisjs-docker

A docker image for adonis.js applications
Shell
33
star
8

javascript-autocomplete-demo

JavaScript
27
star
9

isbot

Detect bots/crawlers/spiders using the user agent string.
Go
18
star
10

golangci-server

Go
15
star
11

audio-slideshow

Make audio based slideshows
JavaScript
13
star
12

go-site-boilerplate

a boilerplate for building webapps with golang
Go
13
star
13

woocommerce-global-cart

Global cart for woocommerce on WordPress multisite installs
PHP
13
star
14

boilingfactory

BoilingFactory is a CLI tool that generates factories for models generated by sqlboiler. https://github.com/volatiletech/sqlboiler.
Smarty
12
star
15

ci-bot

Go
12
star
16

boilingseed

BoilingSeed is a CLI tool that helps generate database seeding helpers with sqlboiler. https://github.com/volatiletech/sqlboiler.
Smarty
9
star
17

fakedb

fakedb registers a fake database driver named test for... testing.
Go
7
star
18

eventbus

Go
6
star
19

janus

A modular framework for Go web applications
Go
6
star
20

demo-site-hng-challenge

Source code for a nice UI concept
HTML
5
star
21

knowledgebase

knowldegebase is a tool to quickly start a knowledge base server or add one to a go web app.
Go
5
star
22

go-sql-builder-benchmarks

Benchmarking Golang SQL query builders
Go
5
star
23

sqlparser

Go Package to parse SQL statements for MySQL and SQLite
ANTLR
4
star
24

crdbstore

Gorilla's Session store implementation with cockroachDB
Go
3
star
25

typesql

SQL Query Builder for Go
Go
3
star
26

expense-tracker

Go
2
star
27

manticore-docker

A docker image for manticore search
2
star
28

audio-slideshow-wp-plugin

PHP
1
star
29

spa-nginx

Dockerfile
1
star
30

web-components

TypeScript
1
star
31

authboss-oauth1

Oauth1 module for Authboss (github.com/volatiletech/authboss)
Go
1
star
32

packr-migrate

A driver to read migration files for golang-migrate from packr boxes
Go
1
star
33

signup-login-ui-concept

Source code for a nice UI concept
JavaScript
1
star
34

jsctags-docker

docker image for jsctags. Tag js files without Node or NPM
Shell
1
star
35

at-ussd-airtime

PHP
1
star