Skip to content
프로젝트

idoubi/sql2struct has 536 GitHub stars and 113 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-10 04:24 UTC. Last push 2023-12-29.

이 수치를 측정하는 방법

A developer-friendly tool for transfering sql statement to go struct.

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

sql2struct

SQL2Struct is a developer-friendly tool used for transfering sql statement to go struct.

中文说明

use sql2struct online

click to visit the sql2struct online website

use sql2struct as chrome extension

  1. install from source
git clone https://github.com/idoubi/sql2struct.git
cd sql2struct
pnpm install
  1. build chrome extension
pnpm build:chrome
  1. install chrome extension

open chrome://extensions/

load extension from sql2struct project dir dist/chrome

use sql2struct locally

  1. install from source
git clone https://github.com/idoubi/sql2struct.git
cd sql2struct
pnpm install
  1. preview
pnpm dev
  1. build
pnpm build

# or

pnpm build:web

how to use

  1. execute show create table xxx\G; in your database client.

20220626221324

  1. paste sql statement in the left editor.

20220626222145

and you'll see the go struct code in the right editor transfered from the sql statement you pasted.

  1. change the transfer options.

by default, only json tags will be used in transfered go struct code. you can click other checkboxes to add more tags. =[]

20220626222618

and you can click "options" button to modify other transfer options.

fields in "special identifiers" will be uppercased when transfered to go struct fields.

20220626222854

"field maps" defines the map rules between sql field type and go struct field type.

20220626222912

something else

stars and issues are all be appreciated.

you can contact me by email to [email protected].

관련 프로젝트 살펴보기