{"repo":"mazrean/genorm","free":true,"listed":false,"github":"https://github.com/mazrean/genorm","clone":"git clone https://github.com/mazrean/genorm.git","description":"SQL Builder to prevent SQL mistakes using the Golang generics","language":"Go","stars":51,"topics":["go","golang","orm","sql","mysql","generics","hacktoberfest"],"license":"MIT","category":"databases-storage","readme_excerpt":"GenORM SQL Builder to prevent SQL mistakes using the Golang generics document - English - 日本語 Feature By mapping SQL expressions to appropriate golang types using generics, you can discover many SQL mistakes at the time of compilation that are not prevented by traditional Golang ORMs or query builders. For example: Compilation error occurs when using values of different Go types in SQL for = etc. comparisons or updating values in UPDATE statements Compile error occurs when using column names of unavailable tables It also supports many CRUD syntaxes in SQL. Example Example 1 String column users.name can be compared to a string value, but comparing it to an int value will result in a compile error. Example 2 You can use an id column from the users table in a SELECT statement that retrieves data from the users table, but using an id column from the messages table will result in a compile error. Install GenORM uses the CLI to generate code. The genorm package is used to invoke queries. For this reason, both the CLI and Package must be install. CLI Package Configuration Example The users table can join the messages table. Usage Connecting to a Database Insert Select Update Delete Join Select Update Transaction Context Supports This project receives support from GMO FlattSecurity's “GMO Open Source Developer Support Program” and regularly conducts security assessments using “Takumi byGMO.”","default_branch":null,"files":null,"tree":[],"storefront":"/r/mazrean","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mazrean/genorm/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."}