{"repo":"si3nloong/sqlgen","free":true,"listed":false,"github":"https://github.com/si3nloong/sqlgen","clone":"git clone https://github.com/si3nloong/sqlgen.git","description":"SQL code generator, no extra runtime cost! It's blazingly fast!!! 🚀🚀🚀","language":"Go","stars":18,"topics":["sql","codegen","mysql","postgres","sqlite","generics","go-cli","no-reflection","blazingly-fast","iterator"],"license":"MIT","category":"databases-storage","readme_excerpt":"sqlgen sqlgen is not an ORM, it's a code generator instead. It parse the go struct and generate the necessary struct methods for you. What is sqlgen? - sqlgen is based on a Code first approach — You don't require to write SQL first, but Go code instead. - sqlgen enables Codegen — We generate the boring bits, so you can focus on building your app quickly. - sqlgen prioritizes Performance — Most of the things will define in compile time instead of runtime. - sqlgen embrace Generics — We use generics to eliminate runtime reflection costs and reduce memory allocation. - sqlgen eliminates Side Effects - You will get expected results instead of side effects when mutate your models. - sqlgen has ZERO Dependencies - It has no dependencies at all, it only rely on the standard library. - sqlgen support dynamic query - It provide multiple insert, multiple upsert and cursor-based pagination which sqlc doesn't able to provide. SQL driver support Driver Support ---------- :-----: mysql ✅ postgres ✅ sqlite ✅ mssql ❌ Quick start 1. Install sqlgen. 2. Define your model struct. model/user.go 3. Generate the output files. 4. Generated code will be as follow. model/generated.go More help to get started: - Getting started tutorial - a comprehensive guide to help you get started - CLI guide - the CLI commands. - FAQ - frequent ask questions. - Configuration file - configure code generation. - Advanced usages - advanced API. Benchmark As you can see, sqlgen is perform as close as Raw query, and hav","default_branch":null,"files":null,"tree":[],"storefront":"/r/si3nloong","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/si3nloong/sqlgen/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."}