{"repo":"goflower-io/crud","free":true,"listed":false,"github":"https://github.com/goflower-io/crud","clone":"git clone https://github.com/goflower-io/crud.git","description":"mysql mariadb postgresql sqlite3 go crud code generated from DDL","language":"Go Template","stars":10,"topics":["mysql","orm","codegenerate","mariadb","golang","postgresql","sqlite3"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"crud — Code Generation ORM for Go Design your table, get your code. crud generates type-safe, high-performance CRUD code from SQL DDL for MySQL, MariaDB, PostgreSQL, and SQLite3. Inspired by facebook/ent 中文文档 Examples xsql golib --- Why crud? Feature Description --- --- Table-first workflow Write DDL → run crud → get production-ready Go code instantly Zero reflection on hot paths Querying all fields uses no reflection; performance matches hand-written SQL IDE-friendly API Full autocomplete, no magic strings in query conditions Batteries included Transactions, row-level locking ( FOR UPDATE , LOCK IN SHARE MODE ), upsert, batch insert gRPC ready One flag generates .proto files + service skeleton following Google API Design Guide Read-write separation Built-in master/slave routing with round-robin load balancing via xsql --- Ecosystem --- Quick Start 1. Install 2. Write your SQL DDL 3. Generate code Generated layout: --- Generated Code Overview crud/user/user.go contains the model, column constants, and typed field operators: crud/aa client.go wraps the DB with per-table sub-clients and read-write routing: --- Initialize DB Client --- CRUD API Create Or use the package-level functions directly (e.g. with a raw xsql.DB ): Query Update Delete Transactions Debug logging --- gRPC Code Generation Prerequisites Generate Generated proto ( user.api.proto ) Generated service ( user.service.go ) The skeleton implements all five gRPC methods. Key patterns: Wire up with golib and test with","default_branch":null,"files":null,"tree":[],"storefront":"/r/goflower-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/goflower-io/crud/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."}