gosbee

Go library

gosbee is a SQL builder for Go, inspired by Ruby's Arel. Instead of joining strings, you build a query as a tree of nodes, and a dialect-specific visitor renders it as SQL for PostgreSQL, MySQL or SQLite. It's for Go developers who want composable, parameterised queries, and it includes a plugin system and an interactive REPL.

Source on GitHub