The gen tool produces a CRUD (Create, read, update and delete) REST API project template from a given database. The gen tool will connect to the db connection string analyze the database and generate the code based on the flags provided. By reading details from the database about the column structure, gen generates a go-compatible struct type with the required column names, data types, and annotations. It supports gorm tags and implements some usable methods. Generated data types include support for nullable columns sql.NullX types or guregu null.X types and the expected basic built-in go types. gen is based / inspired by the work of Seth Shelnutt's db2struct, and Db2Struct is based/inspired by the work of ChimeraCoder's gojson package gojson. Code generation for a complete CRUD rest project is possible with DAO crud functions, http handlers, makefile, sample server are available.

Features

  • Get the relevant dependencies as a "go" software
  • Supports MariaDB
  • Supports MySQL
  • Requires PostgreSQL
  • Works with Microsoft SQL Server
  • Supports SQLite

Project Samples

Project Activity

See All Activity >

Categories

Database

License

Apache License V2.0

Follow gen

gen Web Site

Other Useful Business Software
Zenflow- The AI Workflow Engine for Software Devs Icon
Zenflow- The AI Workflow Engine for Software Devs

Parallel agents. Multi-agent orchestration. Specs that turn into shipped code. Zenflow automates planning, coding, testing, and verification.

Zenflow is the AI workflow engine built for real teams. Parallel agents plan, code, test, and verify in one workflow. With spec-driven development and deep context, Zenflow turns requirements into production-ready output so teams ship faster and stay in flow.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gen!

Additional Project Details

Operating Systems

Windows

Programming Language

Go

Related Categories

Go Database Software

Registered

2022-07-26