gopkg.in/jet.v2 (go): Package jet is a framework for writing type-safe SQL queries in Go, with ability to easily convert database query result into desired arbitrary object structure.  Use the bellow command to install jet  Install jet generator to GOPATH bin folder. This will allow generating jet files from the command line.  *Make sure GOPATH bin folder is added to the PATH environment variable.  Jet requires already defined database schema(with tables, enums etc), so that jet generator can generate SQL Builder and Model files. File generation is very fast, and can be added as every pre-build step. Sample command:  Then next step is to import generated SQL Builder and Model files and write SQL queries in Go:  To write SQL queries for PostgreSQL import:  To write SQL queries for MySQL and MariaDB import:  *Dot import is used so that Go code resemble as much as native SQL. Dot import is not mandatory.  Write SQL:  Store result into desired destination:  Detail info about all features and use cases can be found at project wiki page - https://github.com/go-jet/jet/wiki.
Keywords: cockroachdb|code-completion|code-generator|codegenerator|database|datamapper|golang|mariadb|mysql|postgres|postgresql|sql|sql-builder|sql-queries|sql-query|sql-query-builder|sqlbuilder|sqlite|typesafe|typesafety