{"repo":"x5iu/defc","free":true,"listed":false,"github":"https://github.com/x5iu/defc","clone":"git clone https://github.com/x5iu/defc.git","description":"A Go code generator that automatically generates database CRUD operations, HTTP client code and net/rpc wrappers from interface definitions.","language":"Go","stars":45,"topics":["codegen","golang","http","sql","go","database"],"license":"MIT","category":"databases-storage","readme_excerpt":"defc A Go code generator that automatically generates CRUD operations for databases and HTTP client code based on predefined schemas. Overview defc originates from the tedium of repetitively writing code for \"create, read, update, delete\" (CRUD) operations and \"network interface integration\" in daily development work. By defining schemas, defc automatically generates boilerplate code for database operations and HTTP requests, including parameter construction, error handling, result mapping, and logging logic. The name \"defc\" is a combination of \"def\" (define) and \"c\" (CLI - command line interface), reflecting its nature as a command-line tool for defining and generating code schemas. Currently, defc provides three main code generation scenarios: - Database CRUD : Code generation based on an enhanced fork of sqlx for database operations - HTTP Client : Request code generation based on Go's standard net/http package - RPC : Client and server wrappers generation based on Go's standard net/rpc package Features - 🚀 Automatic Code Generation : Generate database CRUD, HTTP client, and net/rpc wrappers from interface definitions - 📊 SQL Query Support : Full support for complex SQL queries with template functionality - 🌐 HTTP Client Generation : Generate HTTP client code with request/response handling - 🔧 Template Engine : Built-in template support for dynamic SQL and HTTP requests - 🎯 Transaction Support : Automatic transaction handling for database operations - 📝 Logging Integ","default_branch":null,"files":null,"tree":[],"storefront":"/r/x5iu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/x5iu/defc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}