{"repo":"go-juicedev/juice","free":true,"listed":false,"github":"https://github.com/go-juicedev/juice","clone":"git clone https://github.com/go-juicedev/juice.git","description":"Like Mybatis but for golang.","language":"Go","stars":98,"topics":["generic","golang","mapper","mybatis","sql","xml","go","orm"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Juice: A SQL Mapper for Go Inspired by MyBatis Juice is a SQL mapper for Go that keeps SQL explicit while adding XML mappers, dynamic SQL, typed binding, middleware, and transaction helpers. - Why Juice - Quick Start - Installation - When To Use - Documentation - License - Support Me Why Juice - Keep SQL readable and explicit instead of hiding it behind a heavy ORM - Organize queries with XML mappers inspired by MyBatis - Build dynamic SQL with nodes like if , where , set , and foreach - Bind query results into typed Go values with generics - Extend execution with middleware, transaction helpers, and datasource switching Quick Start Create a minimal configuration: Define a mapper: Call it from Go: Run it: Expected output: Installation Install Juice: Install a database driver for the backend you want to use. For example, the quick start above uses SQLite: If you use the SQLite example above, CGO ENABLED=1 is required. When To Use Juice is a good fit when: - you want explicit SQL instead of a code-first ORM - you like MyBatis-style mapper organization - you need dynamic SQL without manually concatenating strings - you want a thin abstraction over database/sql with stronger structure Juice may not be the right fit when: - you want a code-first query builder or ORM model layer - you do not want XML-based mapping at all - you expect built-in migration or schema management features Documentation - API Reference: - English Docs: - 简体中文文档: License Juice is licensed under the Apache L","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-juicedev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-juicedev/juice/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."}